AdaptiveStreamPixelDensity class
Controls how a video view's logical size is scaled to physical pixels when
computing adaptive-stream dimensions. Mirrors the JS SDK's pixelDensity
option (number | 'screen').
Server layers are sized in physical pixels, so on high-density (retina) displays the logical view size under-represents the pixels needed. Set on a view via VideoTrackRenderer; the largest result is requested across all views attached to the track.
Constructors
- AdaptiveStreamPixelDensity.fixed(double density)
-
A positive fixed pixel-density multiplier (fractional allowed, e.g.
1.5,2.0,2.75). The effective value is capped at maxDensity (3x) when resolved.const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
double devicePixelRatio) → double -
Resolves the effective multiplier, capped at maxDensity. For auto,
falls back to the supplied
devicePixelRatio. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- auto → const AdaptiveStreamPixelDensity
-
Use the view's actual device pixel ratio, read via
MediaQuery. Equivalent to the JS SDK's'screen'setting. Capped at maxDensity. - maxDensity → const double
- Upper bound applied to the resolved density to keep bandwidth in check.