MediaPlayer class
Constructors
- MediaPlayer({PlayerConfiguration playerConfig = const PlayerConfiguration(), VideoControllerConfiguration controllerConfig = const VideoControllerConfiguration()})
Properties
-
buffering
→ Stream<
bool> -
no setter
- castDevicesType → DevicesType
-
no setter
- castWidget → Widget?
-
no setter
-
completed
→ Stream<
bool> -
no setter
-
duration
→ Stream<
Duration> -
no setter
-
error
→ Stream<
String> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
initialized
→ Stream<
bool> -
no setter
- mediaUrl → MediaUrl
-
no setter
-
playing
→ Stream<
bool> -
no setter
-
playlist
→ Stream<
Playlist> -
no setter
-
position
→ Stream<
Duration> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
show
→ Stream<
bool> -
no setter
- showTip → bool
-
no setter
- tipTime → Duration?
-
no setter
- tipWidget → Widget?
-
no setter
- videoController → VideoController
-
no setter
- videoDuration → Duration
-
no setter
- videoIsBuffering → bool
-
no setter
- videoIsDisposed → bool
-
no setter
- videoIsInitialized → bool
-
no setter
- videoIsPlaying → bool
-
no setter
- videoPosition → Duration
-
no setter
Methods
-
closeTip(
) → Future< void> -
dispose(
) → Future< void> -
jumpBackward(
{int seconds = 10}) → Future< void> -
jumpForward(
{int seconds = 10}) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
MediaUrl mediaUrl, {bool play = true}) → Future< void> -
pause(
) → Future< void> -
play(
) → Future< void> -
playOrPause(
) → Future< void> -
seek(
Duration position) → Future< void> -
seekBackward(
) → void -
seekForward(
) → void -
setDevicesType(
DevicesType devicesType) → void -
setRate(
double rate) → Future< void> -
setUrl(
MediaUrl mediaUrl, {bool play = true}) → Future< void> -
setUrlAndSeek(
MediaUrl mediaUrl, Duration position, {bool play = true}) → Future< void> -
stop(
) → Future< void> -
stopAndInit(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited