Skip to content

Commit

Permalink
Fix chromecast config (#37, datarhei/restreamer#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioppermann committed Feb 23, 2024
1 parent 2c88c4d commit de6fa8d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public/_player/videojs/player.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,17 @@
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
}
};

if (playerConfig.chromecast) {
config.techOrder = ["chromecast", "html5"];
config.plugins.chromecast = {};
config.plugins.chromecast = {
receiverApplicationId: 'CC1AD845'
};
}

if (playerConfig.airplay) {
Expand Down

0 comments on commit de6fa8d

Please sign in to comment.