mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00: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:
parent
1772f720bf
commit
123119ca0d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue