DVMediaEnvironment class final

What a player is wired to. Defaults are the process's own.

Constructors

DVMediaEnvironment({DVLifecycleSignal<DVAppLifecycle>? lifecycle, DVAudioFocus? focus, DVNowPlaying? nowPlaying, DVMediaCache? cache, Future<String> captionLoader(DVMediaSource source)?, DVMediaTimers timers = const DVSystemMediaTimers(), List<DVDrmAdapter> drmAdapters = const <DVDrmAdapter>[], bool backgroundAudioDeclared = false, DVMediaDiagnosticSink? diagnostics, Duration stallTimeout = const Duration(seconds: 3)})

Properties

backgroundAudioDeclared → bool
Whether the build declared the platform capability background audio needs -- UIBackgroundModes: audio, a media-playback foreground service.
final
cache → DVMediaCache?
The disk cache progressive http: sources are read through, or null where there is none (a browser, whose HTTP cache does this).
final
captionLoader → Future<String> Function(DVMediaSource source)?
Reads a caption file's text. Supplied by the Flutter runtime, which can read assets as well as URLs; without one a source track cannot load.
final
diagnostics → DVMediaDiagnosticSink
final
drmAdapters → List<DVDrmAdapter>
final
focus → DVAudioFocus
final
hashCode → int
The hash code for this object.
no setterinherited
lifecycle → DVLifecycleSignal<DVAppLifecycle>
final
nowPlaying → DVNowPlaying
The lock screen and its transport controls. Used by a player given a DVMediaSession.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stallTimeout → Duration
final
timers → DVMediaTimers
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