From de6fa8d64f08f4347f616e5fb012dc687b0e69b2 Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Fri, 23 Feb 2024 13:03:21 +0100 Subject: [PATCH] Fix chromecast config (#37, datarhei/restreamer#689) --- public/_player/videojs/player.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/_player/videojs/player.html b/public/_player/videojs/player.html index fc77677..ecb4606 100644 --- a/public/_player/videojs/player.html +++ b/public/_player/videojs/player.html @@ -82,7 +82,7 @@ liveui: true, responsive: true, fluid: true, - sources: [{ src: playerConfig.source, type: 'application/x-mpegURL' }], + sources: [{ src: window.location.origin + '/' + playerConfig.source, type: 'application/x-mpegURL' }], plugins: { license: playerConfig.license } @@ -90,7 +90,9 @@ if (playerConfig.chromecast) { config.techOrder = ["chromecast", "html5"]; - config.plugins.chromecast = {}; + config.plugins.chromecast = { + receiverApplicationId: 'CC1AD845' + }; } if (playerConfig.airplay) {