From 81e48040ee59b584bc21aee2ee48ddf17706ef61 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sun, 6 Feb 2022 04:38:06 +0100 Subject: [PATCH] Update README --- README.md | 94 ++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 72 insertions(+), 22 deletions(-) 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; +} ```