mirror of
https://git.waldn.net/git/knotteye/satyr.git
synced 2025-09-10 16:37:55 +00:00
Play MPEG-DASH by default.
Add dash.js and videojs-dash files
This commit is contained in:
@ -18,6 +18,8 @@ function newPopup(url) {
|
||||
</div>
|
||||
<script>window.HELP_IMPROVE_VIDEOJS = false;</script>
|
||||
<script src="/videojs/video.min.js"></script>
|
||||
<script src="/dashjs/dash.all.min.js"></script>
|
||||
<script src="/videojs/videojs-dash.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/videojs/video-js.min.css">
|
||||
<script>
|
||||
var player = videojs('live-video', {
|
||||
@ -30,8 +32,8 @@ function newPopup(url) {
|
||||
document.querySelector(".vjs-modal-dialog-content").textContent = "The stream is currently offline.";
|
||||
});
|
||||
player.src({
|
||||
src: '/live/{{ user }}/index.m3u8',
|
||||
type: 'application/x-mpegURL'
|
||||
src: '/live/{{ user }}/index.mpd',
|
||||
type: 'application/dash+xml'
|
||||
});
|
||||
})
|
||||
</script></br>
|
||||
|
Reference in New Issue
Block a user