add dash config
continuous-integration/drone/push Build is passing Details

This commit is contained in:
an 2020-07-08 15:42:37 +02:00
parent 9fbe9f4ff2
commit 05919eaaec
2 changed files with 12 additions and 1 deletions

View File

@ -36,6 +36,12 @@ rtmp {
hls_variant _240p528kbs BANDWIDTH=528000,RESOLUTION=426x240;
hls_variant _240p264kbs BANDWIDTH=264000,RESOLUTION=426x240;
}
application dash {
live on;
dash on;
dash_path /opt/data/dash;
}
}
}
@ -53,6 +59,11 @@ http {
add_header Access-Control-Allow-Origin *;
}
location /dash {
root /opt/data;
add_header Cache-Control no-cache;
}
location /live {
alias /opt/data/hls;
types {

View File

@ -8,7 +8,7 @@
<p>Video? Video!</p>
<video id=autoplay width="720" height="360" class="video-js vjs-default-skin vjs-big-play-centered" controls>
<source src="http://10.0.30.197:8088/live/hello.m3u8" type="application/x-mpegURL">
<source src="https//video.north-brigade.org/live/test.m3u8" type="application/x-mpegURL">
</video>