detachRendererView

fun Player.detachRendererView(viewContainer: ViewGroup)

Player extension function that detaches the Renderer view from the passed view container in case if it is attached. If the view container doesn't have the renderer view as its child, this API has no effect.

This API MUST be called from UI thread

Parameters

viewContainer

a valid ViewGroup object.

Throws

if the passed viewContainer is null.