attachRendererView

fun Player.attachRendererView(viewContainer: ViewGroup, rendererLayoutParams: ViewGroup.LayoutParams?)

Player extension function that attaches the renderer view to the passed view container with specified Layout params. The Playback Surface will be created and inflated inside this View Container by the com.quickplay.vstb7.player.Player itself.

This API MUST be called from UI Thread

Parameters

viewContainer

a valid ViewGroup object.

rendererLayoutParams

specify the layout params for the renderer surface (can pass {@code null} if no specification is required).

Throws

if the passed viewContainer is null.