Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
update chat component to enable formfield via both streamstatus and socket status
Ginger Wonge3860e7b165b
diff --git a/webroot/js/chat/chat.js b/webroot/js/chat/chat.jsindex 54caabc4c5..27ffb899a1 100644--- a/webroot/js/chat/chat.js+++ b/webroot/js/chat/chat.js@@ -125,7 +125,7 @@ export default class Chat extends Component {}websocketDisconnected() {// this.websocket = null;- this.disableChat()+ this.disableChat();}submitChat(content) {@@ -156,7 +156,6 @@ export default class Chat extends Component {updateAuthorList(message) {const { type } = message;- const username = '';const nameList = this.state.chatUserNames;if (@@ -174,7 +173,7 @@ export default class Chat extends Component {render(props, state) {- const { username, messagesOnly } = props;+ const { username, messagesOnly, chatEnabled } = props;const { messages, inputEnabled, chatUserNames } = state;const messageList = messages.map((message) => (html`<${Message} message=${message} username=${username} key=${message.id} />`));@@ -197,7 +196,7 @@ export default class Chat extends Component {</div><${ChatInput}chatUserNames=${chatUserNames}- inputEnabled=${inputEnabled}+ inputEnabled=${chatEnabled && inputEnabled}handleSendMessage=${this.submitChat}/></div>