BmdrmVideoQuality class

One video rendition of the stream that is currently playing.

Not the same thing as the quality used by the DRM service (DartDrmService.generateDrmStreamUrls(quality: 'h264'), DrmStreamUrls.quality), which selects a codec profile for the manifest that gets fetched. This is a resolution inside that manifest, switched at playback time. Everything on this axis is named videoQuality so the two never read as the same concept.

Constructors

BmdrmVideoQuality({required int id, required int width, required int height, required int bitrate, bool isAuto = false})
const
BmdrmVideoQuality.fromMap(Map<Object?, Object?> map)
Native hands these over the method channel as plain maps, so no field is hard-cast: anything missing or oddly typed degrades to zero instead of throwing inside a callback.
factory

Properties

bitrate int
Bits per second, 0 when the stream does not declare it.
final
hashCode int
The hash code for this object.
no setterinherited
height int
final
id int
Index into the list native last reported, stable until the renditions change. -1 is reserved for auto and never appears in the list itself.
final
isAuto bool
True only for auto; renditions coming from native are always false.
final
label String
Menu-ready label — 'Auto', or the height as '720p'.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
Pixel dimensions, 0 when the stream does not declare them.
final

Methods

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

Constants

auto → const BmdrmVideoQuality
Adaptive bitrate: native picks the rendition. Selecting this (id -1) clears any pin.