Skip to content

Commit

Permalink
Merge pull request #73 from badincite/main
Browse files Browse the repository at this point in the history
Fix chromecast
  • Loading branch information
ioppermann authored Nov 1, 2024
2 parents c1a9c71 + 67cc21b commit 5c2a3a1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions public/_playersite/videojs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ var config = {
liveui: true,
responsive: true,
fluid: true,
// Needed to append the url orgin in order for the source to properly pass to the cast device
sources: [{ src: playerConfig.source, type: 'application/x-mpegURL' }],
// Needed to append the url origin in order for the source to properly pass to the cast device. Also provide a default reciever application ID
sources: [{ src: window.location.origin + '/' + playerConfig.source, type: 'application/x-mpegURL' }],
plugins: {
license: playerConfig.license,
chromecast: {
receiverApplicationId: 'CC1AD845'
},
},
};

if (chromecast) {
Expand Down

0 comments on commit 5c2a3a1

Please sign in to comment.