fix: handle buffering

This commit is contained in:
shenlong-tanwen
2024-08-30 00:16:39 +05:30
committed by mertalev
parent 5ebac69647
commit 9c470def18
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 =