MediaStreamVideoView

open class MediaStreamVideoView @JvmOverloads() constructor(context: Context, attributeSet: AttributeSet?) : SurfaceViewRenderer

A specialized SurfaceViewRenderer to display a video stream

Constructors

MediaStreamVideoView
Link copied to clipboard
fun MediaStreamVideoView(context: Context, attributeSet: AttributeSet? = null)
Constructor to create the specialized SurfaceViewRenderer

Functions

dispose
Link copied to clipboard
fun dispose()
Stops video rendering and releases acquired resources.
init
Link copied to clipboard
open override fun init(sharedContext: EglBase.Context?, rendererEvents: RendererCommon.RendererEvents?)
Initializes the specialized SurfaceViewRenderer and its parent object
pauseVideo
Link copied to clipboard
open override fun pauseVideo()
Pauses rendering of target video track.
playVideo
Link copied to clipboard
fun playVideo()
Starts rendering of target video track.
removeVideoSource
Link copied to clipboard
open fun removeVideoSource()
Removes the renderer from the video source.
setVideoSource
Link copied to clipboard
open fun setVideoSource(track: VideoTrack)
Updates the source of video to be rendered.