JsAudioTrack

class JsAudioTrack(nativeTrack: MediaStreamTrack) : JsMediaTrack, WebRtcMedia.AudioTrack(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 audio 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.