VideoCapabilities class

What the current platform can do, independent of any particular input.

Fields that do not apply to the current platform, or that it cannot report, are null.

Annotations

Constructors

VideoCapabilities({required String platform, String? osVersion, String? backend, List<VideoEncoderCapability> encoders = const <VideoEncoderCapability>[], bool? canEncodeH264, bool? canEncodeAac, int? maxEncodeWidth, int? maxEncodeHeight, bool? hasHardwareH264Encoder, bool? supportsHdrToSdrToneMapping, String? hdrToneMappingDetail, bool? isSecureContext, bool? supportsWorkers, bool? supportsWebCodecs, bool? isChromium, List<String> missingCapabilities = const <String>[]})
Creates a capability report.
const

Properties

backend → String?
The engine in use, for example media3-transformer 1.11.1.
final
canEncodeAac → bool?
Whether an AAC-LC encoder is available.
final
canEncodeH264 → bool?
Whether an H.264 encoder is available.
final
encoders → List<VideoEncoderCapability>
The H.264 and AAC encoders found.
final
hasHardwareH264Encoder → bool?
Whether a hardware H.264 encoder is available.
final
hashCode → int
The hash code for this object.
no setterinherited
hdrToneMappingDetail → String?
Why tone mapping is unavailable, when it is.
final
isChromium → bool?
Web: whether the browser is Chromium-based.
final
isSecureContext → bool?
Web: whether the page runs in a secure context.
final
isSupported → bool
Whether this platform can run normalize() at all.
no setter
maxEncodeHeight → int?
The tallest picture any H.264 encoder accepts.
final
maxEncodeWidth → int?
The widest picture any H.264 encoder accepts.
final
missingCapabilities → List<String>
The names of capabilities that are required but missing. When this is not empty, normalize() fails before any processing starts.
final
osVersion → String?
The OS version (API level on Android, major.minor on iOS) or the browser's user-agent brand and version on the web.
final
platform → String
android, ios or web.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportsHdrToSdrToneMapping → bool?
Whether HDR input can be tone-mapped to SDR on this device.
final
supportsWebCodecs → bool?
Web: whether the WebCodecs encoder and decoder classes exist.
final
supportsWorkers → bool?
Web: whether dedicated workers are available.
final

Methods

maxLevelFor(H264Profile profile) → H264Level?
The highest H.264 level any encoder supports for profile, or null when no encoder reports that profile.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited