MediaPlayer class

The controller which controls the whole videoplayer.

Constructors

MediaPlayer(MethodChannel _channel, bool isBackground, bool showNotification)
Constructor.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isBackground bool
read / write
name String
read / write
position Future<Duration>
The position in the current video.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
showNotification bool
read / write
textureId → dynamic
read-only
valueNotifier ValueNotifier<VideoPlayerValue>
read / write

Methods

dispose() Future<void>
errorListener(Object obj) → void
eventListener(dynamic event) → void
fastForward(int seconds) bool
initialize() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
pause() Future<void>
play() Future<void>
playAt(int i) → dynamic
playNext() bool
playPrev() → dynamic
retry() bool
rewind(int seconds) bool
seek(int moment, [int index = -1]) bool
setLooping(bool looping) Future<void>
setPlaylist(Playlist playlist) Future<void>
setSource(MediaFile source) Future<void>
setVolume(double volume) Future<void>
startTimer() Future
toDurationRange(dynamic value) DurationRange
toggleFullScreen() → void
togglePlayPause() Future<void>
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited