From b4da5f07e97feb2aa1f8a9c549d7c59a7bad7383 Mon Sep 17 00:00:00 2001 From: RockinChaos Date: Sat, 28 Sep 2024 21:58:09 -0700 Subject: [PATCH] chore: player toast duration --- common/views/Player/Player.svelte | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/common/views/Player/Player.svelte b/common/views/Player/Player.svelte index 9cd866a..dc9f203 100644 --- a/common/views/Player/Player.svelte +++ b/common/views/Player/Player.svelte @@ -18,7 +18,7 @@ import { SUPPORTS } from '@/modules/support.js' import 'rvfc-polyfill' import IPC from '@/modules/ipc.js' - import { ArrowDown, ArrowUp, Captions, Cast, CircleHelp, Contrast, FastForward, RefreshCw, Keyboard, List, ListMusic, ListVideo, Maximize, Minimize, Pause, PictureInPicture, PictureInPicture2, Play, Proportions, RefreshCcw, Rewind, RotateCcw, RotateCw, ScreenShare, SkipBack, SkipForward, Users, Volume1, Volume2, VolumeX } from 'lucide-svelte' + import { ArrowDown, ArrowUp, Captions, Cast, CircleHelp, Contrast, FastForward, Keyboard, List, ListMusic, ListVideo, Maximize, Minimize, Pause, PictureInPicture, PictureInPicture2, Play, Proportions, RefreshCcw, Rewind, RotateCcw, RotateCw, ScreenShare, SkipBack, SkipForward, Users, Volume1, Volume2, VolumeX } from 'lucide-svelte' const emit = createEventDispatcher() @@ -995,7 +995,7 @@ console.warn('A network error caused the video download to fail part-way.', target.error) toast.error('Video Network Error', { description: 'A network error caused the video download to fail part-way. Dismiss this toast to reload the video.', - duration: 10000, + duration: Infinity, onDismiss: () => target.load() }) break @@ -1003,7 +1003,7 @@ console.warn('The video playback was aborted due to a corruption problem or because the video used features your browser did not support.', target.error) toast.error('Video Decode Error', { description: 'The video playback was aborted due to a corruption problem. Dismiss this toast to reload the video.', - duration: 10000, + duration: Infinity, onDismiss: () => target.load() }) break @@ -1297,11 +1297,6 @@ {#if playbackRate !== 1}
x{playbackRate.toFixed(1)}
{/if} - {#if video} - video.load()}> - - - {/if} (showKeybinds = true)}>