Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Merge branch 'master' into 0809gw-messagemodule
Ginger Wongf328658ab273
diff --cc webroot/js/utils.jsindex 632beb573e,d04c17117e..ef388da943--- a/webroot/js/utils.js+++ b/webroot/js/utils.js@@@ -1,13 -1,16 +1,16 @@@- export const LOCAL_TEST = window.location.href.indexOf('localhost:') >= 0;- export const URL_PREFIX = LOCAL_TEST ? 'http://localhost:8080' : '';+ const URL_STATUS = `/status`;+ const URL_CHAT_HISTORY = `/chat`;+ // TODO: This directory is customizable in the config. So we should expose this via the config API.+ const URL_STREAM = `/hls/stream.m3u8`;+ const URL_WEBSOCKET = `${location.protocol === 'https:' ? 'wss' : 'ws'}://${location.host}/entry`;- export const POSTER_DEFAULT = `${URL_PREFIX}/img/logo.png`;- export const POSTER_THUMB = `${URL_PREFIX}/thumbnail.jpg`;+ const POSTER_DEFAULT = `/img/logo.png`;+ const POSTER_THUMB = `/thumbnail.jpg`;-const URL_OWNCAST = 'https://github.com/gabek/owncast'; // used in footer+export const URL_OWNCAST = 'https://github.com/gabek/owncast'; // used in footer-function getLocalStorage(key) {+export function getLocalStorage(key) {try {return localStorage.getItem(key);} catch (e) {