pub struct TrackRemote { /* private fields */ }
Expand description

TrackRemote represents a single inbound source of media

Implementations

id is the unique identifier for this Track. This should be unique for the stream, but doesn’t have to globally unique. A common example would be ‘audio’ or ‘video’ and StreamID would be ‘desktop’ or ‘webcam’

stream_id is the group this track belongs too. This must be unique

rid gets the RTP Stream ID of this Track With Simulcast you will have multiple tracks with the same ID, but different RID values. In many cases a TrackRemote will not have an RID, so it is important to assert it is non-zero

payload_type gets the PayloadType of the track

kind gets the Kind of the track

ssrc gets the SSRC of the track

msid gets the Msid of the track

codec gets the Codec of the track

Read reads data from the track.

read_rtp is a convenience method that wraps Read and unmarshals for you.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.