VideoPlayerState class

VideoPlayerState is the state of the Video , player. Control every thing , Get all updates From this state and stream

Inheritance

Constructors

VideoPlayerState({required VideoState state, required VideoController controller, required List<String> paths, required double height, required double width})

Properties

currentBrightness Future<double>
For getting current brightness in Future<double> type
final
currentPlayingVideo ValueNotifier<int>
Current video index
getter/setter pairinherited
fitNotifier ValueNotifier<BoxFit>
fit notifier Notifies when BoxFit changes
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height double
Height of the Player
final
isPlay ValueNotifier<bool>
isPlay is a valueNotifier notifies when video state change from play and pause
getter/setter pairinherited
isPlaying bool
finalinherited
lockNotifier ValueNotifier<bool>
lockNotifier is a valueNotifier which control lock Screen
finalinherited
moreOpacityNotifier ValueNotifier<double>
moreOpacityNotifier is a valueNotifier which control the Menu or more settings screen
finalinherited
overlayOpacityNotifier ValueNotifier<double>
overlayOpacityNotifier is a valueNotifier which control overlay Video/Player Controls
finalinherited
paths List<String>
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speedNotifer ValueNotifier<double>
Notfies when speed is changed
finalinherited
state PlayerState
Player State
getter/setter pair
stream PlayerStream
Player Stream
getter/setter pair
volume Volume
Volume full controls on Volume
final
width double
Width of the Player
final

Methods

didRequestAppExit() Future<AppExitResponse>
It is for controlling the exit try
dispose() → void
enterFullScreen() Future<void>
To enter full screen Video player
exitFullScreen() Future<void>
To exit full screen Video player
exitMenu() → void
Hide More Controls Page or Menu
inherited
hideControls() → void
Hide Controls
inherited
jump(int index) Future<void>
It is for navigating between videos .
lock() → void
Lock the Player for reducing accidental touches
inherited
move(int from, int to) Future<void>
Moves form index to to index
next() Future<void>
Skip the current video
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<void>
Pause video
play() Future<void>
Start Playing video or videos
playOrPause() Future<void>
For changing state between play and pause
previous() Future<void>
play the previously played video
refreshView() → void
Refresh View
remove(int index) Future<void>
remove video from the given list of videos by index
screenshot() Future<Uint8List?>
Take a screenshot of the current frame of the video
seek(Duration duration) Future<void>
For seeking the current playing video to specific duration
setAudioDevice(AudioDevice device) Future<void>
To change the Audio Device
setAudioTrack(AudioTrack track) Future<void>
To setting a audio track for the current playing video
setBrightness(double brightness) Future<void>
Set Brightness
setPitch(double pitch) Future<void>
Sets a relative pitch tp the player
setPlayerMode(PlaylistMode mode) Future<void>
For setting PlayerModes Use PlaylistMode as argument
setShuffle(bool shuffle) Future<void>
Enable or Disable the shuffle Default false.
setSize({int? width, int? height}) Future<void>
Set a different size to the videoplayer
setSpeed(double speed) Future<void>
For setting a playback speed
setSubtitleTrack(SubtitleTrack track) Future<void>
Set a subtitle to current video
setVideoTrack(VideoTrack track) Future<void>
Set a subtitle to current video
showControls() → void
Show the Controls over Player
inherited
showMenu() → void
Show More Controls Page or Menu
inherited
toggleControl() → void
ToggleControls
inherited
toggleFullScreen() Future<void>
To toggle full screen Video player
toString() String
A string representation of this object.
inherited
unLock() → void
Remove the Lock Screen to access controls
inherited
update({double? width, double? height, BoxFit? fit, Color? fill, Alignment? alignment, double? aspectRatio, FilterQuality? filterQuality}) → void
For updating the player settings during the playing time
waitforFirstFrameRender() Future<void>
It will only compelete when first frame of the video is rendered

Operators

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