DVMediaPictureInPictureBackend class abstract interface

A backend whose video can float over other applications.

A separate interface rather than two more methods on every backend, because most targets have no such thing, and a method that exists only to refuse is a method somebody calls expecting it to work.

Implemented types

Properties

capabilities → DVMediaBackendCapabilities
no setterinherited
events → Stream<DVMediaBackendEvent>
What happened. Subscribed once per attach; cancelled on dispose.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → Future<void>
Releases the decoder, the surface and anything else the player holds.
inherited
enterPictureInPicture() → Future<bool>
Asks the platform to float the video. Confirmed by DVMediaPictureInPictureChanged; false when the platform refused here and now (the setting is off, the application is not in the foreground).
exitPictureInPicture() → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open(DVMediaSource source, {Object? license}) → Future<void>
Loads source. license is whatever a DVDrmAdapter produced.
inherited
pause() → Future<void>
inherited
play() → Future<void>
inherited
seek(Duration position, int generation) → Future<void>
Moves to position. generation is echoed back on the DVMediaSeekCompleted that confirms it and on every DVMediaPosition after, which is how a report that was already in flight when the seek was issued is told apart from one that describes where playback now is.
inherited
setVolume(double volume) → Future<void>
inherited
toString() → String
A string representation of this object.
inherited

Operators

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