Browse Source

Connect to websocket in embed player. Closes #361

pull/389/head
Gabe Kangas 5 years ago
parent
commit
298d140c28
  1. 7
      webroot/js/app-video-only.js

7
webroot/js/app-video-only.js

@ -5,6 +5,13 @@ const html = htm.bind(h); @@ -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,

Loading…
Cancel
Save