brightcove / react-player-loader

A React component that embeds and loads Brightcove Player scripts.
Other
21 stars 22 forks source link

Errors on Console: google-cast-button #112

Closed Wilsonruan closed 1 year ago

Wilsonruan commented 1 year ago

I seem to be getting an error on the console when there are more than one video. We don't want chrome-cast. Can we prevent this error from appearing?

cast_framework.js:64 Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "google-cast-button" has already been used with this registry at http://www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js:64:39 at http://www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js:69:234 (anonymous) @ cast_framework.js:64 (anonymous) @ cast_framework.js:69

Wilsonruan commented 1 year ago

I was able to fix it by changing the video setting.

MeVimalkumar commented 1 year ago

@Wilsonruan what exact changes you made to get rid of this issue?

anass05 commented 1 year ago

@Wilsonruan would you please share your fix?

Wilsonruan commented 1 year ago

@MeVimalkumar, @anass05. I reach out to my media team. It was a setting in our data-player. I asked to disable google-cast-button. The problem is if you have the google-cast-button active and currently not used. It will give us an error.