fix: handle buffering

This commit is contained in:
shenlong-tanwen
2024-08-30 00:16:39 +05:30
committed by Mert Alev
parent 6553e4d0be
commit 7bf5a19971
2 changed files with 53 additions and 5 deletions
@@ -87,6 +87,20 @@ class VideoPlaybackValue {
volume: 0.0,
);
}
VideoPlaybackValue copyWith({
Duration? position,
Duration? duration,
VideoPlaybackState? state,
double? volume,
}) {
return VideoPlaybackValue(
position: position ?? this.position,
duration: duration ?? this.duration,
state: state ?? this.state,
volume: volume ?? this.volume,
);
}
}
final videoPlaybackValueProvider =