summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2022-11-28 00:13:18 -0500
committerAndrew Cady <d@cryptonomic.net>2022-11-28 00:13:29 -0500
commit43012c0448d092f59f7de823a2b85f9dcd724e47 (patch)
treec4701ef46ed74c443d643b6926a8def5204075dc
parented5b7a38f85e8e9c41797763f6ebc6423d23173d (diff)
add index.htmlHEADmaster
-rw-r--r--index.html11
-rwxr-xr-xstream1
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>
diff --git a/stream b/stream
index d4b3317..0514e89 100755
--- a/stream
+++ b/stream
@@ -7,6 +7,7 @@ hostname=$(cryptonomic hostname)
7dashname=dash 7dashname=dash
8dashdir=$srvdir/public_html/$dashname 8dashdir=$srvdir/public_html/$dashname
9sudo mkdir -p "$dashdir" 9sudo mkdir -p "$dashdir"
10install -m0644 index.html -t "$dashdir"
10sudo chown "$USER:$GROUP" "$dashdir" 11sudo chown "$USER:$GROUP" "$dashdir"
11printf '%s\n' "https://$hostname/$dashname/live.mpd" 12printf '%s\n' "https://$hostname/$dashname/live.mpd"
12./ffmpeg.sh "$dashdir" 13./ffmpeg.sh "$dashdir"