TrackContext

class TrackContext(track: RemoteTrack?, val endpoint: Endpoint, val trackId: String, metadata: Metadata = mapOf(), simulcastConfig: SimulcastConfig?)

Track's context i.e. all data that can be useful when operating on track.

Constructors

Link copied to clipboard
constructor(track: RemoteTrack?, endpoint: Endpoint, trackId: String, metadata: Metadata = mapOf(), simulcastConfig: SimulcastConfig?)

Functions

Link copied to clipboard

Sets listener that is called each time track encoding has changed.

Link copied to clipboard

Sets listener that is called every time an update about voice activity is received from the server.

Properties

Link copied to clipboard

Encoding that is currently received. Only present for remote tracks.

Link copied to clipboard

The reason of currently selected encoding. Only present for remote tracks.

Link copied to clipboard

Endpoint this track comes from.

Link copied to clipboard

Any info that was passed in MembraneWebRTC.createVideoTrack/MembraneWebRTC.createAudioTrack

Link copied to clipboard

Information about simulcast for given track

Link copied to clipboard
Link copied to clipboard

Track id. It is generated by RTC engine and takes form endpoint_id:<random_uuid_v4>.

Link copied to clipboard