diff --git a/README.md b/README.md index 8108fbc..034e588 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ rtmp { hls on; hls_path /mnt/ssd_data/hls/src; + hls_continuous off; hls_fragment 1s; hls_fragment_naming system; hls_playlist_length 60s; @@ -113,35 +114,84 @@ WantedBy=multi-user.target ### VideoJS Player example code ``` - - -
- -
- - + + + + + + + Player - chaos.stream + + + +
+ +
+ + + + ``` ### accompanying nginx config for VideoJS Player ``` -location ~ ^/(.+)/(.+)$ { - rewrite ^/(.+)/(.+)$ /watch.php?stream=$1&profile=$2 last; +location = /favicon.ico { + #ignore rewrite rules } -location ~ ^/(.+)$ { - rewrite ^/(.+)$ /watch.php?stream=$1&profile=src last; +location ^~ /lib/ { + #ignore rewrite rules } +location = /watch.html { + #ignore rewrite rules +} + +location / { + rewrite / /watch.html last; +} ```