mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-05-09 20:25:14 +02:00
Fix native player error message
This commit is contained in:
parent
2055a3ea81
commit
841c824590
@ -10,6 +10,8 @@
|
|||||||
<video id="video"></video>
|
<video id="video"></video>
|
||||||
<div id="message-container" hidden>
|
<div id="message-container" hidden>
|
||||||
<p id="message"></p>
|
<p id="message"></p>
|
||||||
|
<br>
|
||||||
|
<p>Open a new issue <a href="https://github.com/ByteDream/stream-bypass/issues/new">here</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -15,11 +15,10 @@ video
|
|||||||
display: flex
|
display: flex
|
||||||
justify-content: center
|
justify-content: center
|
||||||
align-items: center
|
align-items: center
|
||||||
height: 100%
|
flex-direction: column
|
||||||
|
|
||||||
#message
|
|
||||||
color: white
|
color: white
|
||||||
text-align: center
|
text-align: center
|
||||||
|
height: 100%
|
||||||
|
|
||||||
& a, & a:visited
|
& a, & a:visited
|
||||||
color: red
|
color: red
|
||||||
|
@ -3,7 +3,7 @@ import {Match, matches, Reliability} from "../../match/matches";
|
|||||||
import Hls from "hls.js";
|
import Hls from "hls.js";
|
||||||
|
|
||||||
function show_message(message: string) {
|
function show_message(message: string) {
|
||||||
document.getElementById('message').innerHTML = message
|
document.getElementById('message').innerText = message
|
||||||
document.getElementById('message-container').hidden = false
|
document.getElementById('message-container').hidden = false
|
||||||
document.getElementById('video').hidden = true
|
document.getElementById('video').hidden = true
|
||||||
}
|
}
|
||||||
@ -48,9 +48,9 @@ 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`
|
message = `The reliability for this domain is normal, errors like this can occur but are not very common. Try to refresh the page`
|
||||||
break
|
break
|
||||||
case Reliability.HIGH:
|
case Reliability.HIGH:
|
||||||
message = `The reliability for this domains is high, errors like this are very unlikely to happen.<br>
|
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 <a href="https://github.com/ByteDream/stream-bypass/issues/new">here</a>.<br>
|
Try to refresh the page and if the error still exists you might want to open a new issue.
|
||||||
When you're using <a href="https://www.torproject.org/">Tor</a>, such errors have a slight chance to occur more often,
|
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`
|
so if this is the case just try to reload the page and see if it's working then`
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user