Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
randomize avatar for same names
Ginger Wongcd27af8bae65
diff --git a/webroot/js/message.js b/webroot/js/message.jsindex ee5ef03f92..dd8760ff32 100644--- a/webroot/js/message.js+++ b/webroot/js/message.js@@ -81,7 +81,8 @@ class Messaging {initLocalStates() {this.username = getLocalStorage(KEY_USERNAME) || generateUsername();- this.imgUsernameAvatar.src = getLocalStorage(KEY_AVATAR) || generateAvatar(this.username);+ this.imgUsernameAvatar.src =+ getLocalStorage(KEY_AVATAR) || generateAvatar(`${this.username}${Date.now()}`);this.updateUsernameFields(this.username);this.chatDisplayed = getLocalStorage(KEY_CHAT_DISPLAYED) || false;@@ -149,7 +150,7 @@ class Messaging {if (newValue) {this.username = newValue;this.updateUsernameFields(newValue);- this.imgUsernameAvatar.src = generateAvatar(newValue);+ this.imgUsernameAvatar.src = generateAvatar(`${newValue}${Date.now()}`);setLocalStorage(KEY_USERNAME, newValue);setLocalStorage(KEY_AVATAR, this.imgUsernameAvatar.src);}diff --git a/webroot/js/player/player.js b/webroot/js/player/player.jsindex 209fd9c569..73a6aa9ce0 100644--- a/webroot/js/player/player.js+++ b/webroot/js/player/player.js@@ -60,7 +60,6 @@ function setupPlayerEventHandlers() {function restartPlayer() {try {- console.log('restarting', player.src())const player = videojs(VIDEO_ID);player.pause();player.src(player.src()); // Reload the same video