discontinuedPackage flutter_meedu_media_kit has been discontinued.

WebPlayer class

Inheritance

Constructors

WebPlayer({required PlayerConfiguration configuration})

Properties

audioBitrateController → StreamController<double?>
finalinherited
audioDeviceController → StreamController<AudioDevice>
finalinherited
audioDevicesController → StreamController<List<AudioDevice>>
finalinherited
audioParamsController → StreamController<AudioParams>
finalinherited
bufferController → StreamController<Duration>
finalinherited
bufferingController → StreamController<bool>
finalinherited
completedController → StreamController<bool>
finalinherited
completer → Completer<void>
Completer to wait for initialization of this instance.
finalinherited
configuration → PlayerConfiguration
User defined configuration for Player.
finalinherited
durationController → StreamController<Duration>
finalinherited
errorController → StreamController<String>
finalinherited
handle → Future<int>
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
heightController → StreamController<int?>
finalinherited
isVideoControllerAttached ↔ bool
bool for signaling VideoController (from package:media_kit_video) initialization.
getter/setter pairinherited
logController → StreamController<PlayerLog>
finalinherited
pitchController → StreamController<double>
finalinherited
playingController → StreamController<bool>
finalinherited
playlistController → StreamController<Playlist>
finalinherited
playlistModeController → StreamController<PlaylistMode>
finalinherited
positionController → StreamController<Duration>
finalinherited
rateController → StreamController<double>
finalinherited
release → List<Future<void> Function()>
Publicly defined clean-up Functions which must be called before dispose.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state ↔ PlayerState
Current state of the player.
getter/setter pairinherited
stream ↔ PlayerStream
Current state of the player available as listenable Streams.
getter/setter pairinherited
subtitleController → StreamController<List<String>>
finalinherited
trackController → StreamController<Track>
finalinherited
tracksController → StreamController<Tracks>
finalinherited
videoControllerCompleter → Completer<void>
Completer for signaling VideoController (from package:media_kit_video) initialization.
finalinherited
videoParamsController → StreamController<VideoParams>
finalinherited
volumeController → StreamController<double>
finalinherited
waitForPlayerInitialization → Future<void>
Future<void> to wait for initialization of this instance.
no setterinherited
waitForVideoControllerInitializationIfAttached → Future<void>
Future<void> to wait for VideoController (from package:media_kit_video) initialization.
no setterinherited
widthController → StreamController<int?>
finalinherited

Methods

add(Media media) → Future<void>
inherited
dispose() → Future<void>
inherited
jump(int index) → Future<void>
inherited
move(int from, int to) → Future<void>
inherited
next() → Future<void>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open(Playable playable, {bool play = true}) → Future<void>
inherited
pause() → Future<void>
inherited
play() → Future<void>
inherited
playOrPause() → Future<void>
inherited
previous() → Future<void>
inherited
remove(int index) → Future<void>
inherited
screenshot({String? format = 'image/jpeg'}) → Future<Uint8List?>
inherited
seek(Duration duration) → Future<void>
inherited
setAudioDevice(AudioDevice audioDevice) → Future<void>
inherited
setAudioTrack(AudioTrack track) → Future<void>
inherited
setPitch(double pitch) → Future<void>
inherited
setPlaylistMode(PlaylistMode playlistMode) → Future<void>
inherited
setRate(double rate) → Future<void>
inherited
setShuffle(bool shuffle) → Future<void>
inherited
setSubtitleTrack(SubtitleTrack track) → Future<void>
inherited
setVideoTrack(VideoTrack track) → Future<void>
inherited
setVolume(double volume) → Future<void>
inherited
stop() → Future<void>
Stops the Player. Unloads the current Media or Playlist from the Player. This method is similar to dispose but does not release the resources & Player is still usable.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

test ↔ bool
Whether the WebPlayer is initialized for unit-testing.
getter/setter pair