|
|
|
@ -33,7 +33,7 @@ a,a:visited {color:unset;} |
|
|
|
|
class="video-js vjs-default-skin" |
|
|
|
|
controls |
|
|
|
|
preload="auto" |
|
|
|
|
style="max-width:100%;max-height:100%;display: flex;margin: 0 auto;" |
|
|
|
|
style="max-width:100%;max-height:100%;display: flex;margin: 0 auto;width: 100%;height: 100%;" |
|
|
|
|
data-setup='{}'> |
|
|
|
|
</video> |
|
|
|
|
<iframe id="chat" |
|
|
|
@ -43,14 +43,14 @@ a,a:visited {color:unset;} |
|
|
|
|
</iframe> |
|
|
|
|
</div> |
|
|
|
|
<div id="footer"> |
|
|
|
|
<small> |
|
|
|
|
Want a stream key? Join #general and ask ➔ |
|
|
|
|
</small> |
|
|
|
|
<div> |
|
|
|
|
<a href='http://stream.loki/hls.html'>HLS</a> (<a href='http://stream.loki/hls/tom.m3u8'>m3u8</a>) |
|
|
|
|
<a href='/hls.html'>HLS</a> (<a href='/hls/tom.m3u8'>m3u8</a>) / <b><a href='/dash.html'>DASH</a></b> (<a href='/dash/tom.mpd'>mpd</a>) / <a href='rtmp://stream.loki/live/tom'>RTMP</a> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<b><a href='http://stream.loki/dash.html'>DASH</a></b> (<a href='http://stream.loki/dash/tom.mpd'>mpd</a>) |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
RTMP (<a href='rtmp://stream.loki/live/tom'>rtmp://</a>) |
|
|
|
|
<a href='/stat.html'>Stream List</a> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<script> |
|
|
|
@ -69,17 +69,23 @@ document |
|
|
|
|
const chat = document.getElementById('chat'); |
|
|
|
|
chat.src = chat.src.replace('@tom', `@${source}`); |
|
|
|
|
window.HELP_IMPROVE_VIDEOJS = false; |
|
|
|
|
videojs.Hls.GOAL_BUFFER_LENGTH_RATE = 2; |
|
|
|
|
videojs.Hls.GOAL_BUFFER_LENGTH = 60; |
|
|
|
|
videojs.Hls.MAX_GOAL_BUFFER_LENGTH = 120; |
|
|
|
|
const player = videojs('video', { |
|
|
|
|
html5: { |
|
|
|
|
vhs: { |
|
|
|
|
experimentalBufferBasedABR: true |
|
|
|
|
experimentalBufferBasedABR: false |
|
|
|
|
handlePartialData: true, |
|
|
|
|
allowSeeksWithinUnsafeLiveWindow: true, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
liveui: true, |
|
|
|
|
autoplay: 'any', |
|
|
|
|
}); |
|
|
|
|
player.src({ |
|
|
|
|
src: `http://stream.loki/dash/${source}.m3u8`, |
|
|
|
|
type: 'application/', |
|
|
|
|
src: `/dash/${source}.mpd`, |
|
|
|
|
type: 'application/dash+xml', |
|
|
|
|
}); |
|
|
|
|
player.play(); |
|
|
|
|
/*setInterval(() => { |
|
|
|
|