extra smooth seeking, add comments

This commit is contained in:
mertalev
2024-11-12 12:32:08 -05:00
parent e59912e16e
commit caee381721
5 changed files with 104 additions and 25 deletions
@@ -125,6 +125,16 @@ class VideoPlaybackValueState extends StateNotifier<VideoPlaybackValue> {
);
}
set status(VideoPlaybackState value) {
if (state.state == value) return;
state = VideoPlaybackValue(
position: state.position,
duration: state.duration,
state: value,
volume: state.volume,
);
}
void reset() {
state = videoPlaybackValueDefault;
}