IosMediaTrack

abstract class IosMediaTrack(nativeTrack: RTCMediaStreamTrack, onDispose: () -> Unit) : WebRtcMedia.Track(source)

iOS-specific implementation of a WebRTC media track that wraps native RTCMediaStreamTrack.

Provides a bridge between the common WebRTC API and iOS-specific WebRTC implementation, handling track identification, state management, and proper disposal of native resources.

Report a problem

Inheritors

Constructors

Link copied to clipboard
constructor(nativeTrack: RTCMediaStreamTrack, onDispose: () -> Unit)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val enabled: Boolean

Current enabled state of the track

Link copied to clipboard
open override val id: String

Unique identifier for this track

Link copied to clipboard
open override val kind: WebRtcMedia.TrackType

Type of media track (audio or video)

Functions

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

Enables or disables the track.

Link copied to clipboard
fun WebRtcMedia.Track.getNative(): MediaStreamTrack

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