Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouTube videos do not play in the Brave browser #2722

Closed
mikedavies-dev opened this issue Dec 11, 2019 · 1 comment
Closed

YouTube videos do not play in the Brave browser #2722

mikedavies-dev opened this issue Dec 11, 2019 · 1 comment

Comments

@mikedavies-dev
Copy link

mikedavies-dev commented Dec 11, 2019

There appears to be some kind of issue loading YouTube videos with MediaElement on the Brave browser (based on Chrome).

https://brave.com/

I'm not sure if this is a Brave issue or something to do with MediaElement.

Steps to reproduce

  1. Download + open the Brave browser (I'm using MacOS Version 1.1.20 Chromium: 79.0.3945.74 (Official Build) (64-bit))
  2. Go to the MediaElement homepage (https://www.mediaelementjs.com/)
  3. Select YouTube as the video source
  4. Click play

Expected behaviour

The video should play

Actual behaviour

The video does not play and the following error can be seen in the developer console

Access to XMLHttpRequest at 'https://googleads.g.doubleclick.net/pagead/id' from origin 'https://www.youtube.com' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

Other notes

Normal YouTube embedding appears to work fine in Brave

@jaapmarcus
Copy link
Contributor

Please allow autoplay from MediaElements Website and the function works fine. Due method how the player handles external render like Youtube. Brave thinks is an auto play and this is not allowed. When Enableling auto play it works fine

The error is most likely caused by privacy features of Brave browser. Sadly enough we can't control this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants