Fix a bug where clicking the watch link on a profile would disconnect the user from the chat.
parent
53aa632da4
commit
9800012ba0
|
@ -68,11 +68,15 @@ async function updateViewers(){
|
||||||
vc.innerHTML = "[Viewers: "+viewers+"]";
|
vc.innerHTML = "[Viewers: "+viewers+"]";
|
||||||
setTimeout(updateViewers, 2000);
|
setTimeout(updateViewers, 2000);
|
||||||
}
|
}
|
||||||
|
//function ohgodwhy(){
|
||||||
|
// document.getElementById("cursed"). attr('src', '');
|
||||||
|
// document.getElementById("cursed").attr('src', 'rtmp://{{ domain }}/live/{{ username }}');
|
||||||
|
//}
|
||||||
</script>
|
</script>
|
||||||
</br>
|
</br>
|
||||||
<span style="float: left;font-size: large;"><a href="/live/{{ username }}/index.mpd">{{ username }}</a> | {{ title | escape }}<span id="viewercount" onload="updateViewers">[Viewers: {{viewers}}]</span>
|
<span style="float: left;font-size: large;"><a href="/live/{{ username }}/index.mpd">{{ username }}</a> | {{ title | escape }}<span id="viewercount" onload="updateViewers">[Viewers: {{viewers}}]</span>
|
||||||
<script>updateViewers()</script>
|
<script>updateViewers()</script>
|
||||||
</b></span><span style="float: right;font-size: large;"> Links | <a href="rtmp://{{ domain }}/live/{{ username }}">Watch</a> <a href="JavaScript:newPopup('/chat?room={{ username }}');">Chat</a> <a href="/vods/{{ username }}">VODs</a></span>
|
</b></span><span style="float: right;font-size: large;"> Links | <a href="rtmp://{{ domain }}/live/{{ username }}" onclick="window.open('rtmp://{{ domain }}/live/{{ username }}').close(); return false;" ><!--If anyone is reading this I want you to know that that horrifying hack fixes a nasty bug that drove me temporarily insane. I'm not touching it.-->Watch</a> <a href="JavaScript:newPopup('/chat?room={{ username }}');">Chat</a> <a href="/vods/{{ username }}">VODs</a></span>
|
||||||
<div id="jscontainer">
|
<div id="jscontainer">
|
||||||
<div id="jschild" style="width: 70%;height: 100%;position: relative;">
|
<div id="jschild" style="width: 70%;height: 100%;position: relative;">
|
||||||
<image id="playbtn" src="/play.svg" alt="Play Stream" style="width:100%;height:100%;height: 100%;position: absolute;" onclick="document.getElementById('video').paused ? document.getElementById('video').play() : document.getElementById('video') .pause();"></image>
|
<image id="playbtn" src="/play.svg" alt="Play Stream" style="width:100%;height:100%;height: 100%;position: absolute;" onclick="document.getElementById('video').paused ? document.getElementById('video').play() : document.getElementById('video') .pause();"></image>
|
||||||
|
@ -85,4 +89,5 @@ async function updateViewers(){
|
||||||
</br>
|
</br>
|
||||||
<noscript>The webclients for the stream and the chat require javascript, but feel free to use the direct links above!</br></br></noscript>
|
<noscript>The webclients for the stream and the chat require javascript, but feel free to use the direct links above!</br></br></noscript>
|
||||||
{{ about | escape }}
|
{{ about | escape }}
|
||||||
{% endblock %}
|
<iframe name="cursed" frameborder="0" style="display: none;width:0;height:0;border:0;visibility: hidden;"></iframe>
|
||||||
|
{% endblock %}
|
||||||
|
|
Reference in New Issue