Compare commits

..

No commits in common. "main" and "v1.14.0" have entirely different histories.

View File

@ -6,22 +6,18 @@ var config = {
liveui: true,
responsive: true,
fluid: true,
// Needed to append the url origin in order for the source to properly pass to the cast device
sources: [{ src: window.location.origin + '/' + playerConfig.source, type: 'application/x-mpegURL' }],
plugins: {},
// 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' }],
};
if (chromecast) {
config.techOrder = ['chromecast', 'html5'];
// Provide a default reciever application ID
config.plugins.chromecast = {
receiverApplicationId: 'CC1AD845',
};
}
var player = videojs('player', config);
player.ready(function () {
if (chromecast) {
player.chromecast();
}
@ -29,7 +25,7 @@ player.ready(function () {
if (airplay) {
player.airPlay();
}
player.license(playerConfig.license);
if (playerConfig.logo.image.length != 0) {