mirror of
https://git.waldn.net/git/knotteye/satyr.git
synced 2026-11-20 21:19:05 +00:00
Play MPEG-DASH by default.
Add dash.js and videojs-dash files
This commit is contained in:
1 parent
4e19bdc2f5
commit
f5f9d1f8e6
6 files changed
+74
-4
No files matched your search
+4
-2
@@ -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