MediaManager class
A class that manages the playing of audio and video in the app.
Constructors
Properties
- duration → Duration?
-
no setter
-
media ↔ StreamController<
Media> ? -
getter/setter pair
-
position ↔ StreamController<
Duration> ? -
getter/setter pair
- videoController → dynamic
-
no setter
Methods
-
clearQueue(
) → void -
dispose(
) → void -
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to
addListenerwill throw after the object is disposed). -
end(
) → void -
init(
) → dynamic -
isPlaying(
) → bool -
next(
) → Media? -
pause(
[MediaType? type]) → void -
pauseAudio(
) → void -
play(
) → Future -
playMedia(
Media? media) → Future -
playNext(
) → void -
playPrevious(
) → void -
prev(
) → Media? -
queueMedia(
Media? media) → void -
queuePlaylist(
List< Media> playlist, [int current = 0]) → void -
resume(
) → void -
seek(
Duration position) → Future -
skipToQueueItem(
int index) → void -
stop(
) → void -
togglePlay(
) → Future