JsVideoTrack

class JsVideoTrack(nativeTrack: MediaStreamTrack) : JsMediaTrack, WebRtcMedia.VideoTrack(source)

Constructors

Link copied to clipboard
constructor(nativeTrack: MediaStreamTrack)

Properties

Link copied to clipboard
abstract val enabled: Boolean
Link copied to clipboard
abstract val id: String
Link copied to clipboard

Functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract fun enable(enabled: Boolean)
Link copied to clipboard

Returns implementation of the native video stream track used under the hood. Use it with caution.

fun WebRtcMedia.Track.getNative(): MediaStreamTrack

Returns implementation of the native media stream track used under the hood. Use it with caution.