Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Use auth'ed admin chat messages endpoint to get history
Gabe Kangas5345c124aae6
diff --git a/web/pages/chat.tsx b/web/pages/chat.tsxindex 4bcaff6f97..992e7e59e6 100644--- a/web/pages/chat.tsx+++ b/web/pages/chat.tsx@@ -48,7 +48,7 @@ export default function Chat() {const getInfo = async () => {try {- const result = await fetchData(CHAT_HISTORY, { auth: false });+ const result = await fetchData(CHAT_HISTORY, { auth: true });setMessages(result);} catch (error) {console.log("==== error", error);diff --git a/web/utils/apis.ts b/web/utils/apis.tsindex 062785555d..5e1be34adb 100644--- a/web/utils/apis.ts+++ b/web/utils/apis.ts@@ -35,7 +35,7 @@ export const LOGS_ALL = `${API_LOCATION}logs`;export const LOGS_WARN = `${API_LOCATION}logs/warnings`;// Get chat history-export const CHAT_HISTORY = `${NEXT_PUBLIC_API_HOST}api/chat`;+export const CHAT_HISTORY = `${API_LOCATION}chat/messages`;// Get chat historyexport const UPDATE_CHAT_MESSGAE_VIZ = `${NEXT_PUBLIC_API_HOST}api/admin/chat/updatemessagevisibility`;