JsAudioTrack

class JsAudioTrack(nativeTrack: MediaStreamTrack) : WebRtcMedia.AudioTrack, JsMediaTrack(source)

Constructors

Link copied to clipboard
constructor(nativeTrack: MediaStreamTrack)

Properties

Link copied to clipboard
open val enabled: Boolean

Whether the track is enabled.

Link copied to clipboard
open val id: String

The unique identifier of the track.

Link copied to clipboard

The type of the track (audio or video).

Functions

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

Enables or disables the track.

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.