Skip to content

Commit

Permalink
Show error banner when playback fails
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed May 19, 2024
1 parent 66a903b commit 2b4c6f0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions web/src/components/player/HlsVideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,14 @@ export default function HlsVideoPlayer({
) {
setLoadedMetadata(false);
setUseHlsCompat(true);
} else {
toast.error(
// @ts-expect-error code does exist
`Failed to play recordings (error ${e.target.error.code}): ${e.target.error.message}`,
{
position: "top-center",
},
);
}
}}
/>
Expand Down

0 comments on commit 2b4c6f0

Please sign in to comment.