Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Connect to websocket in embed player. Closes #361

Gabe Kangas21efb166ca3b
diff --git a/webroot/js/app-video-only.js b/webroot/js/app-video-only.js
index e70f72b93b..c64e40a38a 100644
--- a/webroot/js/app-video-only.js
+++ b/webroot/js/app-video-only.js
@@ -5,6 +5,13 @@ const html = htm.bind(h);
import VideoPoster from './components/video-poster.js';
import { OwncastPlayer } from './components/player.js';
+// We count viewers by concurrent websocket connections.
+// So for now let's make a connection just so it can
+// be counted.
+// https://github.com/owncast/owncast/discussions/374
+import Websocket from './utils/websocket.js';
+const websocket = new Websocket();
+
import {
addNewlines,
pluralize,