addTrack

fun addTrack(videoTrack: VideoTrack)

This method can be used to attach a VideoTrack to this view for rendering.

If a track is already attached, the previous track will be replaced. Pass null to stop rendering (equivalent to removeTrack).

Parameters

videoTrack

the VideoTrack to render, or null to ignore

See also


fun addTrack(videoTrack: VideoTrack, rendererEvents: RendererCommon.RendererEvents)

This method can be used to attach a VideoTrack to this view for rendering with renderer event callbacks.

Parameters

videoTrack

the VideoTrack to render, or null to ignore

rendererEvents

the RendererCommon.RendererEvents to receive rendering callbacks (e.g., first frame rendered, frame size changed)

See also