Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "google-cast-button" has already been used with this registry
at https://www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js:64:39
at https://www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js:69:234
With that said, the chromecast functionality itself still seems to work.
Reproduction
Example (pseudo) code
watch.js
import videojs from 'video.js';
require('@silvermine/videojs-chromecast')(videojs, {preloadWebComponents: true});
import $ from 'jquery';
# ...
playerOptions = {
controls: true,
techOrder: ['chromecast', 'html5'],
html5: {
hls: {
overrideNative: true
}
},
plugins: {
chromecast: {},
}
};
let player = videojs('#myPlayer', playerOptions);
Minimal view file with cast_sender.js after watch.js.
I've read the Initialization Options section, but trying to put JQuery before/after, or turning preloadWebComponents on/off does not seem to resolve the issue.
Problem
The console shows the following error:
With that said, the chromecast functionality itself still seems to work.
Reproduction
Example (pseudo) code
watch.js
Minimal view file with
cast_sender.js
afterwatch.js
.watch.html.twig
Versions
I've read the Initialization Options section, but trying to put JQuery before/after, or turning
preloadWebComponents
on/off does not seem to resolve the issue.