fix: reconnect to sourceStream ffmpeg

This commit is contained in:
antebrl
2024-12-21 23:15:16 +00:00
parent 9fba7a49f1
commit 84776cf744
2 changed files with 17 additions and 9 deletions

View File

@@ -158,6 +158,8 @@ function VideoPlayer({ channel, syncEnabled }: VideoPlayerProps) {
hls.on(Hls.Events.ERROR, (_, data) => {
if (data.fatal) {
console.error('HLS error:', data);
if (toastStartId) {
removeToast(toastStartId);
}