mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Connect to websocket in embed player. Closes #361
This commit is contained in:
parent
90b71b7c00
commit
298d140c28
@ -5,6 +5,13 @@ const html = htm.bind(h);
|
|||||||
import VideoPoster from './components/video-poster.js';
|
import VideoPoster from './components/video-poster.js';
|
||||||
import { OwncastPlayer } from './components/player.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 {
|
import {
|
||||||
addNewlines,
|
addNewlines,
|
||||||
pluralize,
|
pluralize,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user