Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Remove ping requests now that it has been consolidated with status requests
Gabe Kangas7830051356ba
diff --git a/webroot/js/app-video-only.js b/webroot/js/app-video-only.jsindex c4cd169026..0d79016c23 100644--- a/webroot/js/app-video-only.js+++ b/webroot/js/app-video-only.js@@ -16,7 +16,6 @@ import { addNewlines, pluralize } from './utils/helpers.js';import {URL_CONFIG,URL_STATUS,- URL_VIEWER_PING,TIMER_STATUS_UPDATE,TIMER_STREAM_DURATION_COUNTER,TEMP_IMAGE,@@ -115,12 +114,6 @@ export default class VideoOnly extends Component {this.handleOfflineMode();this.handleNetworkingError(`Stream status: ${error}`);});-- // Ping the API to let them know we're an active viewer- fetch(URL_VIEWER_PING).catch((error) => {- this.handleOfflineMode();- this.handleNetworkingError(`Viewer PING error: ${error}`);- });}setConfigData(data = {}) {diff --git a/webroot/js/app.js b/webroot/js/app.jsindex 744dedb7dd..65ecc044c9 100644--- a/webroot/js/app.js+++ b/webroot/js/app.js@@ -42,7 +42,6 @@ import {URL_CONFIG,URL_OWNCAST,URL_STATUS,- URL_VIEWER_PING,WIDTH_SINGLE_COL,} from './utils/constants.js';@@ -188,12 +187,6 @@ export default class App extends Component {this.handleOfflineMode();this.handleNetworkingError(`Stream status: ${error}`);});-- // Ping the API to let them know we're an active viewer- fetch(URL_VIEWER_PING).catch((error) => {- this.handleOfflineMode();- this.handleNetworkingError(`Viewer PING error: ${error}`);- });}setConfigData(data = {}) {diff --git a/webroot/js/utils/constants.js b/webroot/js/utils/constants.jsindex 89441aa2b0..af05c5cb0d 100644--- a/webroot/js/utils/constants.js+++ b/webroot/js/utils/constants.js@@ -4,7 +4,6 @@ export const URL_STATUS = `/api/status`;export const URL_CHAT_HISTORY = `/api/chat`;export const URL_CUSTOM_EMOJIS = `/api/emoji`;export const URL_CONFIG = `/api/config`;-export const URL_VIEWER_PING = `/api/ping`;// TODO: This directory is customizable in the config. So we should expose this via the config API.export const URL_STREAM = `/hls/stream.m3u8`;