diff --git a/nginx.conf b/nginx.conf index b578c3d..f6f066c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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; + } } } @@ -52,6 +58,11 @@ http { add_header Cache-Control no-cache; add_header Access-Control-Allow-Origin *; } + + location /dash { + root /opt/data; + add_header Cache-Control no-cache; + } location /live { alias /opt/data/hls; diff --git a/player.html b/player.html index cbcef3d..a1908b2 100644 --- a/player.html +++ b/player.html @@ -8,7 +8,7 @@

Video? Video!