Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
clean up footer things
Ginger Wong9648d6fbfd5b
diff --git a/webroot/index.html b/webroot/index.htmlindex df5b8e840d..ae1a82317d 100644--- a/webroot/index.html+++ b/webroot/index.html@@ -25,8 +25,11 @@ GW TODO:- expand user name change text box on focus.chat- accessilbity+- expect urls out of social list, not usernames-+- convert all the https://robohash.org/username123 areas to {{}}, put into util+ - generate ?set=x(1-1)&size=10x10+- don't force logo to be square. use as bg image :contain*/</script><body class="bg-gray-300 text-gray-800">@@ -101,10 +104,12 @@ GW TODO:<stream-tags v-bind:tags="tags"></stream-tags></div><!-- USER CONTENT... -->- <div class="extra-user-content" v-html="extraUserContent"></div>+ <section class="extra-user-content" v-html="extraUserContent"></section></div></section>- <owncast-footer></owncast-footer>+ <div id="footer">+ <owncast-footer v-bind:appVersion="appVersion"></owncast-footer>+ </div></div>@@ -112,12 +117,12 @@ GW TODO:<section id="chat-container-wrap" class="flex"><div id="user-content-touch" class="user-content"><social-list v-bind:platforms="socialHandles"></social-list>-<!-- USER CONTENT... -->- <div v-html="extraUserContent"></div>+ <div class="extra-user-content" v-html="extraUserContent"></div>- <owncast-footer></owncast-footer>-+ <div class="#footer-touch">+ <owncast-footer v-bind:appVersion="appVersion"></owncast-footer>+ </div></div><div id="chat-container" class="bg-gray-800">diff --git a/webroot/js/app.js b/webroot/js/app.jsindex 95b9738eda..5898194ba7 100644--- a/webroot/js/app.js+++ b/webroot/js/app.js@@ -18,6 +18,7 @@ async function setupApp() {summary: "",tags: [],title: "",+ appVersion: "",},watch: {@@ -66,9 +67,9 @@ function setupWebsocket() {// Uncomment to point to somewhere other than goth.landconst protocol = location.protocol == "https:" ? "wss" : "ws"- var ws = new WebSocket(protocol + "://" + location.host + "/entry")+ // var ws = new WebSocket(protocol + "://" + location.host + "/entry")- // var ws = new WebSocket("wss://goth.land/entry")+ var ws = new WebSocket("wss://goth.land/entry")ws.onmessage = (e) => {const model = JSON.parse(e.data)diff --git a/webroot/js/footer.js b/webroot/js/footer.jsindex 330bd34d44..f2b3de6a0e 100644--- a/webroot/js/footer.js+++ b/webroot/js/footer.js@@ -1,9 +1,17 @@Vue.component('owncast-footer', {+ props: {+ appVersion: {+ type: String,+ default: "0.1",+ },+ },+template: `- <footer class="flex border-t border-gray-500 border-solid">+ <footer class="flex"><span><a href="https://github.com/gabek/owncast" target="_blank">About Owncast</a>- </span>+ </span>+ <span>Version {{appVersion}}</span></footer>`,});diff --git a/webroot/js/player/player.js b/webroot/js/player/player.jsindex 6fe5c1512e..23323f3629 100644--- a/webroot/js/player/player.js+++ b/webroot/js/player/player.js@@ -1,5 +1,5 @@-const streamURL = '/hls/stream.m3u8';-// const streamURL = 'https://goth.land/hls/stream.m3u8'; // Uncomment me to point to remote video+// const streamURL = '/hls/stream.m3u8';+const streamURL = 'https://goth.land/hls/stream.m3u8'; // Uncomment me to point to remote video// style hackingswindow.VIDEOJS_NO_DYNAMIC_STYLE = true;diff --git a/webroot/styles/layout.css b/webroot/styles/layout.cssindex 1fc6523206..7150c8a48c 100644--- a/webroot/styles/layout.css+++ b/webroot/styles/layout.css@@ -82,10 +82,15 @@ img.logo {footer {flex-direction: row;- justify-content: center;+ justify-content: flex-start;font-size: .75em;- padding: 2em 0;+ padding: 2em;}+footer span {+ display: inline-block;+ margin: 0 1em;+}+/* ************************************************8 */@@ -210,6 +215,9 @@ h2 {list-style: unset;}+#footer-touch {+ display: none;+}/* ************************************************8 */@@ -319,6 +327,10 @@ h2 {.no-chat #chat-container-wrap {display: none;}+.no-chat footer {+ justify-content: center;+}+.chat #chat-container-wrap {display: block;}@@ -437,7 +449,8 @@ h2 {.desktop.chat #user-content {width: 100%;}- .desktop.chat #user-content{+ .desktop #footer,+ .desktop.chat #user-content {display: none;}@@ -459,9 +472,11 @@ h2 {+.touch-screen #footer,.touch-screen #user-content {display: none;}+.touch-screen #footer-touch,.touch-screen #user-content-touch {display: block;}