diff options
-rw-r--r-- | index.html | 11 | ||||
-rwxr-xr-x | stream | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/index.html b/index.html new file mode 100644 index 0000000..bbc95ee --- /dev/null +++ b/index.html | |||
@@ -0,0 +1,11 @@ | |||
1 | <html> | ||
2 | <head> | ||
3 | <title>livestream: live.mpd</title> | ||
4 | </head> | ||
5 | <body> | ||
6 | <video> | ||
7 | <source src="live.mpd" /> | ||
8 | Your browser does not support the video tag. | ||
9 | </video> | ||
10 | </body> | ||
11 | </html> | ||
@@ -7,6 +7,7 @@ hostname=$(cryptonomic hostname) | |||
7 | dashname=dash | 7 | dashname=dash |
8 | dashdir=$srvdir/public_html/$dashname | 8 | dashdir=$srvdir/public_html/$dashname |
9 | sudo mkdir -p "$dashdir" | 9 | sudo mkdir -p "$dashdir" |
10 | install -m0644 index.html -t "$dashdir" | ||
10 | sudo chown "$USER:$GROUP" "$dashdir" | 11 | sudo chown "$USER:$GROUP" "$dashdir" |
11 | printf '%s\n' "https://$hostname/$dashname/live.mpd" | 12 | printf '%s\n' "https://$hostname/$dashname/live.mpd" |
12 | ./ffmpeg.sh "$dashdir" | 13 | ./ffmpeg.sh "$dashdir" |