mirror of
https://github.com/immich-app/immich.git
synced 2026-05-11 19:01:52 +03:00
chore(mobile): reduce buffering timer duration (#27111)
3 seconds is too long for some people, and it can be confusing to see the video not playing and no indication that it's buffering. Reducing the duration of the timer should show the spinner faster and prevent confusion. Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
@@ -226,7 +226,7 @@ class VideoPlayerNotifier extends StateNotifier<VideoPlayerState> {
|
||||
|
||||
void _startBufferingTimer() {
|
||||
_bufferingTimer?.cancel();
|
||||
_bufferingTimer = Timer(const Duration(seconds: 3), () {
|
||||
_bufferingTimer = Timer(const Duration(seconds: 1), () {
|
||||
if (mounted && state.status != VideoPlaybackStatus.completed) {
|
||||
state = state.copyWith(status: VideoPlaybackStatus.buffering);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user