diff --git a/src/ui/player/player.html b/src/ui/player/player.html index e28f7ed..8c1514a 100644 --- a/src/ui/player/player.html +++ b/src/ui/player/player.html @@ -8,8 +8,8 @@ -
- + diff --git a/src/ui/player/player.ts b/src/ui/player/player.ts index 05691ce..bc1f446 100644 --- a/src/ui/player/player.ts +++ b/src/ui/player/player.ts @@ -3,7 +3,7 @@ import {Match, matches, Reliability} from "../../match/matches"; import Hls from "hls.js"; function show_message(message: string) { - document.getElementById('message').innerText = message + document.getElementById('message').innerHTML = message document.getElementById('message-container').hidden = false document.getElementById('video').hidden = true } @@ -48,13 +48,13 @@ async function play_hls(url: string, match: Match) { message = `The reliability for this domain is normal, errors like this can occur but are not very common. Try to refresh the page` break case Reliability.HIGH: - message = `The reliability for this domains is high, errors like this are very unlikely to happen. - Try to refresh the page and if the error still exists you might want to open a new issue here. - When you're using Tor such errors have a slight chance to occur more often, + message = `The reliability for this domains is high, errors like this are very unlikely to happen.
+ Try to refresh the page and if the error still exists you might want to open a new issue here.
+ When you're using Tor, such errors have a slight chance to occur more often, so if this is the case just try to reload the page and see if it's working then` break } - show_message(`Could not load HLS video. ${message}`) + show_message(`Could not load video. ${message}`) } } else { show_message('Failed to play m3u8 video (hls is not supported). Try again or create a new issue here')