1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-28 02:12:20 +02:00

Use config file for OME broadcasting

This commit is contained in:
Yohann D'ANELLO
2020-11-09 17:18:37 +01:00
parent cfcde6f530
commit 3d8ba0623d
10 changed files with 55 additions and 11 deletions

View File

@ -4,10 +4,11 @@ import { ViewerCounter } from "./modules/viewerCounter.js";
* Initialize viewer page
*
* @param {String} stream
* @param {String} omeApp
* @param {Number} viewersCounterRefreshPeriod
* @param {String} posterUrl
*/
export function initViewerPage(stream, viewersCounterRefreshPeriod, posterUrl) {
export function initViewerPage(stream, omeApp, viewersCounterRefreshPeriod, posterUrl) {
// Create viewer counter
const viewerCounter = new ViewerCounter(
document.getElementById("connected-people"),
@ -41,13 +42,13 @@ export function initViewerPage(stream, viewersCounterRefreshPeriod, posterUrl) {
expandFullScreenUI: true,
sources: [
{
"file": "wss://" + window.location.host + "/app/" + stream,
"file": "wss://" + window.location.host + "/" + omeApp + "/" + stream,
"type": "webrtc",
"label": " WebRTC - Source"
},
{
"type": "hls",
"file": "https://" + window.location.host + "/app/" + stream + "_bypass/playlist.m3u8",
"file": "https://" + window.location.host + "/" + omeApp + "/" + stream + "_bypass/playlist.m3u8",
"label": " HLS"
}
]