VideoView

open class VideoView(viewContext: Context, attrs: AttributeSet?, defStyleAttr: Int, defStyleRes: Int) : RelativeLayout, MediaTrackSink

Renders a MediaStreamTrack from a local or remote participant.

Internally, this uses a SurfaceView to provide the best performance. For UI layouts which require overlapping or transparent video views, consider VideoTextureView instead.

Constructors

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

Types

Link copied to clipboard
enum VideoScaleMode : Enum<VideoView.VideoScaleMode>

Properties

Link copied to clipboard
var bringVideoToFront: Boolean = false

If true, show this VideoView on top of any other VideoView instances.

Link copied to clipboard
var mirrorHorizontally: Boolean = false

When true, flips rendering in the X axis.

Link copied to clipboard
open override var track: MediaStreamTrack?
Link copied to clipboard
var videoScaleMode: VideoView.VideoScaleMode