MediaCodedFrame Struct
A coded frame of a media segment (https://w3c.github.io/media-source/#coded-frame): the library stores its position on the media timeline, not its data.
public readonly struct MediaCodedFrame : IEquatable<MediaCodedFrame>- Implements
Constructors
| Name | Description |
|---|---|
| MediaCodedFrame(long, double, double, double, bool) | A coded frame of a media segment (https://w3c.github.io/media-source/#coded-frame): the library stores its position on the media timeline, not its data. |
MediaCodedFrame(long, double, double, double, bool)
A coded frame of a media segment (https://w3c.github.io/media-source/#coded-frame): the library stores its position on the media timeline, not its data.
public MediaCodedFrame(long TrackId, double PresentationTimestamp, double DecodeTimestamp, double Duration, bool IsRandomAccessPoint)Parameters
TrackIdlong- The identifier of the track of the frame (
MediaSegmentTrack.Id). PresentationTimestampdouble- The presentation timestamp of the frame, in seconds.
DecodeTimestampdouble- The decode timestamp of the frame, in seconds.
Durationdouble- The duration of the frame, in seconds.
IsRandomAccessPointbool- Whether the frame can be decoded without the previous frames (a key frame; every audio frame of most codecs).
Properties
| Name | Description |
|---|---|
| DecodeTimestamp | The decode timestamp of the frame, in seconds. |
| Duration | The duration of the frame, in seconds. |
| IsRandomAccessPoint | Whether the frame can be decoded without the previous frames (a key frame; every audio frame of most codecs). |
| PresentationTimestamp | The presentation timestamp of the frame, in seconds. |
| TrackId | The identifier of the track of the frame (MediaSegmentTrack.Id). |
DecodeTimestamp
MediaSegmentParser.csDuration
MediaSegmentParser.csIsRandomAccessPoint
MediaSegmentParser.csPresentationTimestamp
MediaSegmentParser.csTrackId
MediaSegmentParser.csThe identifier of the track of the frame (MediaSegmentTrack.Id).
public long TrackId { get; init; }Property value
Methods
| Name | Description |
|---|---|
| Deconstruct(long, double, double, double, bool) | |
| Equals(MediaCodedFrame) | |
| Equals(object) | |
| GetHashCode() | |
| ToString() |
Deconstruct(long, double, double, double, bool)
Equals overloads
Equals(MediaCodedFrame)
public bool Equals(MediaCodedFrame other)No documentation is available.
Equals(object)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(MediaCodedFrame, MediaCodedFrame) | |
| operator !=(MediaCodedFrame, MediaCodedFrame) |
operator ==(MediaCodedFrame, MediaCodedFrame)
public static bool operator ==(MediaCodedFrame left, MediaCodedFrame right)No documentation is available.
operator !=(MediaCodedFrame, MediaCodedFrame)
public static bool operator !=(MediaCodedFrame left, MediaCodedFrame right)No documentation is available.