MediaCapabilities extension type
The MediaCapabilities
interface of the
Media Capabilities API
provides information about the decoding abilities of the device, system and
browser. The API can be used to query the browser about the decoding
abilities of the device based on codecs, profile, resolution, and bitrates.
The information can be used to serve optimal media streams to the user and
determine if playback should be smooth and power efficient.
The information is accessed through the mediaCapabilities
property of
the Navigator interface.
API documentation sourced from MDN Web Docs.
- on
- Implemented types
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decodingInfo(
MediaDecodingConfiguration configuration) → JSPromise< MediaCapabilitiesDecodingInfo> -
The
MediaCapabilities.decodingInfo()
method, part of the Media Capabilities API, returns a promise with the tested media configuration's capabilities info. This contains the three boolean propertiessupported
,smooth
, andpowerefficient
, which describe whether decoding the media described would be supported, smooth, and powerefficient. -
encodingInfo(
MediaEncodingConfiguration configuration) → JSPromise< MediaCapabilitiesEncodingInfo> -
The
MediaCapabilities.encodingInfo()
method, part of the MediaCapabilities interface of the Media Capabilities API, returns a promise with the tested media configuration's capabilities information. This contains the three boolean propertiessupported
,smooth
, andpowerefficient
, which describe how compatible the device is with the type of media. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited