VideoTextureView

class VideoTextureView(viewContext: Context, attrs: AttributeSet?, defStyleAttr: Int, defStyleRes: Int) : FrameLayout, MediaTrackSink

Renders a MediaStreamTrack from a local or remote participant.

In most cases, VideoView should be used instead of VideoTextureView. Internally, VideoTextureView renders to an Android TextureView. This integrates well with the Android UI hierarchy, but is more resource intensive, and interruptions to the UI thread could cause stuttering in the video.

Constructors

Link copied to clipboard
constructor(viewContext: Context, attrs: AttributeSet?, defStyleAttr: Int)
constructor(viewContext: Context, attrs: AttributeSet?)
constructor(viewContext: Context)
constructor(viewContext: Context, attrs: AttributeSet?, defStyleAttr: Int, defStyleRes: Int)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface Listener

Properties

Link copied to clipboard

When true, flips rendering in the X axis.

Link copied to clipboard
open override var track: MediaStreamTrack?

Functions

Link copied to clipboard

Sets a listener to be notified when events occur.