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

NameDescription
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

TrackId long
The identifier of the track of the frame (MediaSegmentTrack.Id).
PresentationTimestamp double
The presentation timestamp of the frame, in seconds.
DecodeTimestamp double
The decode timestamp of the frame, in seconds.
Duration double
The duration of the frame, in seconds.
IsRandomAccessPoint bool
Whether the frame can be decoded without the previous frames (a key frame; every audio frame of most codecs).

Properties

NameDescription
DecodeTimestampThe decode timestamp of the frame, in seconds.
DurationThe duration of the frame, in seconds.
IsRandomAccessPointWhether the frame can be decoded without the previous frames (a key frame; every audio frame of most codecs).
PresentationTimestampThe presentation timestamp of the frame, in seconds.
TrackIdThe identifier of the track of the frame (MediaSegmentTrack.Id).

DecodeTimestamp

MediaSegmentParser.cs

The decode timestamp of the frame, in seconds.

public double DecodeTimestamp { get; init; }

Property value

double

The duration of the frame, in seconds.

public double Duration { get; init; }

Property value

double

IsRandomAccessPoint

MediaSegmentParser.cs

Whether the frame can be decoded without the previous frames (a key frame; every audio frame of most codecs).

public bool IsRandomAccessPoint { get; init; }

Property value

bool

PresentationTimestamp

MediaSegmentParser.cs

The presentation timestamp of the frame, in seconds.

public double PresentationTimestamp { get; init; }

Property value

double

The identifier of the track of the frame (MediaSegmentTrack.Id).

public long TrackId { get; init; }

Property value

long

Methods

NameDescription
Deconstruct(long, double, double, double, bool)
Equals(MediaCodedFrame)
Equals(object)
GetHashCode()
ToString()

Deconstruct(long, double, double, double, bool)

public void Deconstruct(out long TrackId, out double PresentationTimestamp, out double DecodeTimestamp, out double Duration, out bool IsRandomAccessPoint)

Parameters

TrackId long
PresentationTimestamp double
DecodeTimestamp double
Duration double
IsRandomAccessPoint bool

No documentation is available.

Equals overloads

Equals(MediaCodedFrame)

public bool Equals(MediaCodedFrame other)
Parameters
other MediaCodedFrame
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(MediaCodedFrame, MediaCodedFrame)
operator !=(MediaCodedFrame, MediaCodedFrame)

operator ==(MediaCodedFrame, MediaCodedFrame)

public static bool operator ==(MediaCodedFrame left, MediaCodedFrame right)

Parameters

left MediaCodedFrame
right MediaCodedFrame

Returns

bool

No documentation is available.

operator !=(MediaCodedFrame, MediaCodedFrame)

public static bool operator !=(MediaCodedFrame left, MediaCodedFrame right)

Parameters

left MediaCodedFrame
right MediaCodedFrame

Returns

bool

No documentation is available.