Table of Contents

Class VideoPlaybackQuality

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

A VideoPlaybackQuality object is returned by the GetVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video.

[Value("VideoPlaybackQuality")]
public class VideoPlaybackQuality
Inheritance
VideoPlaybackQuality
Inherited Members

Remarks

-The GetVideoPlaybackQuality() method to get a VideoPlaybackQuality object
-MediaSource
-SourceBuffer

See also on MDN

Constructors

VideoPlaybackQuality()

public VideoPlaybackQuality()

Properties

CorruptedVideoFrames

IMPORTANT
Deprecated
The VideoPlaybackQuality interface's read-only
corruptedVideoFrames property the number of corrupted
video frames that have been received since the video element was
last loaded or reloaded.
[Value("corruptedVideoFrames")]
public ulong CorruptedVideoFrames { get; }

Property Value

ulong

The number of corrupted video frames that have been received since the
video element was last loaded or reloaded.It is up to the user agent to determine whether or not to display a
corrupted video frame. If a corrupted frame is dropped, then both
corruptedVideoFrames and
DroppedVideoFrames are
incremented.

Remarks

-The GetVideoPlaybackQuality() method for
constructing and returning this interface

See also on MDN

CreationTime

The read-only creationTime property on the
VideoPlaybackQuality interface reports the number of milliseconds since
the browsing context was created this quality sample was recorded.

[Value("creationTime")]
public Number CreationTime { get; }

Property Value

Number

A Number object which indicates the number of milliseconds
that elapsed between the time the browsing context was created and the time at which
this sample of the video quality was obtained.For details on how the time is determined, see Now().

Remarks

-The GetVideoPlaybackQuality() method, which
returns VideoPlaybackQuality objects

See also on MDN

DroppedVideoFrames

The read-only droppedVideoFrames
property of the VideoPlaybackQuality interface returns the number of
video frames which have been dropped rather than being displayed since the last time
the media was loaded into the HTMLVideoElement.

[Value("droppedVideoFrames")]
public ulong DroppedVideoFrames { get; }

Property Value

ulong

An unsigned 64-bit value indicating the number of frames that have been dropped since
the last time the media in the video element was loaded or reloaded.
This information can be used to determine whether or not to downgrade the video stream
to avoid dropping frames.Frames are typically dropped either before or after decoding them, when it's determined
that it will not be possible to draw them to the screen at the correct time.

Remarks

-The GetVideoPlaybackQuality() method, which creates
and returns VideoPlaybackQuality objects

See also on MDN

TotalVideoFrames

The VideoPlaybackQuality interface's
totalVideoFrames read-only property returns the total
number of video frames that have been displayed or dropped since the media was
loaded.

[Value("totalVideoFrames")]
public ulong TotalVideoFrames { get; }

Property Value

ulong

The total number of frames that the video element has displayed or
dropped since the media was loaded into it. Essentially, this is the number of frames
the element would have presented had no problems occurred.This value is reset when the media is reloaded or replaced.

Remarks

-The GetVideoPlaybackQuality() method for
constructing and returning this interface.

See also on MDN