AndroidAudioTrack

class AndroidAudioTrack(nativeTrack: MediaStreamTrack, onDispose: () -> Unit? = null) : AndroidMediaTrack, WebRtcMedia.AudioTrack(source)

Constructors

Link copied to clipboard
constructor(nativeTrack: MediaStreamTrack, onDispose: () -> Unit? = null)

Properties

Link copied to clipboard
abstract val enabled: Boolean

Whether the track is enabled.

Link copied to clipboard
abstract 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
abstract fun close()
Link copied to clipboard
abstract 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.