Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

DOMException: play() can only be initiated by a user gesture #11527

Closed
luixxiul opened this issue Oct 14, 2017 · 14 comments · Fixed by brave/muon#394
Closed

DOMException: play() can only be initiated by a user gesture #11527

luixxiul opened this issue Oct 14, 2017 · 14 comments · Fixed by brave/muon#394

Comments

@luixxiul
Copy link
Contributor

luixxiul commented Oct 14, 2017

Test plan

  1. Go to https://di.fm
  2. Click a station
  3. Radio should play

Original issue Description

Description

You cannot play tracks on https://di.fm with this error by selecting a station:

application-eda7502f5aee7c6b656cd6956e1bbeb5.js:67415 Failed to execute 'play' on 'HTMLMediaElement': API can only be initiated by a user gesture.
application-eda7502f5aee7c6b656cd6956e1bbeb5.js:67415 Uncaught (in promise) DOMException: play() can only be initiated by a user gesture.

It has been reported that Google Play Music did not work due to the issue. See: #10972.

Steps to Reproduce

  1. Go to https://di.fm
  2. Click a station

Actual result:

Nothing is played, though you click the station thumbnail by yourself, which should be that user gesture.

Expected result:

Music should be loaded and played

Reproduces how often: [What percentage of the time does it reproduce?]

Consistently

Brave Version

about:brave info:

Brave: 0.19.45
rev: cddf9a5
Muon: 4.4.28
libchromiumcontent: 61.0.3163.100
V8: 6.1.534.41
Node.js: 7.9.0
Update Channel: Beta
OS Platform: Microsoft Windows
OS Release: 10.0.14393
OS Architecture: x64

Reproducible on current live release:

Yes

Additional Information

Affected sites:

@luixxiul luixxiul added the bug label Oct 14, 2017
@luixxiul
Copy link
Contributor Author

The same issue happens on Google Play Music as well. #10972

@CyberScooby
Copy link

I encountered the same issue for AccuRadio on Windows 8.1. It was working on whatever the official release was prior to 0.19.48.

@luixxiul
Copy link
Contributor Author

luixxiul commented Nov 13, 2017

Added priority/p3 based on #10972 (comment) (Google Play Music broken). There seems to be a bunch of other sites which do not work due to this issue.

@luixxiul luixxiul added the 0.18.x issue first seen in 0.18.x label Nov 13, 2017
@jonathansampson
Copy link
Collaborator

Impacts Pandora as well: https://twitter.com/gortok/status/930480452279906306

@luixxiul
Copy link
Contributor Author

@luixxiul
Copy link
Contributor Author

Also DuckDuckGo Tracks via search result is affected

@julien-l
Copy link

Same for deezer.com (music streaming).

@jonathansampson
Copy link
Collaborator

Related: #11988

@bsclifton bsclifton added this to the Backlog (Prioritized) milestone Nov 22, 2017
darkdh added a commit to brave/muon that referenced this issue Dec 1, 2017
darkdh added a commit to brave/muon that referenced this issue Dec 1, 2017
fix brave/browser-laptop#11988
fix brave/browser-laptop#11527

2. Don't check user initiated video
fix brave/browser-laptop#12149

3. Default allow muted media
fix brave/browser-laptop#12152

4. Default allow for local files
fix brave/browser-laptop#8929

Auditors: @bridiver, @bbondy, @bsclifton
@eolszewski
Copy link

+1

@eTorAken
Copy link

Have the same problem on SoundCloud.

darkdh added a commit to brave/muon that referenced this issue Dec 18, 2017
fix brave/browser-laptop#11988
fix brave/browser-laptop#11527

2. Don't check user initiated video
fix brave/browser-laptop#12149

3. Default allow muted media
fix brave/browser-laptop#12152

4. Default allow for local files
fix brave/browser-laptop#8929

Auditors: @bridiver, @bbondy, @bsclifton
@siliconsorcery
Copy link

No sound from Google Music.

Brave | 0.19.122
rev | 009e792
Muon | 4.5.31
libchromiumcontent | 63.0.3239.108
V8 | 6.3.292.48
Node.js | 7.9.0
Update Channel | Release
OS Platform | Microsoft Windows
OS Release | 10.0.15063
OS Architecture | x64

darkdh added a commit to brave/muon that referenced this issue Dec 21, 2017
fix brave/browser-laptop#11988
fix brave/browser-laptop#11527

2. Don't check user initiated video
fix brave/browser-laptop#12149

3. Default allow muted media
fix brave/browser-laptop#12152

4. Default allow for local files
fix brave/browser-laptop#8929

Auditors: @bridiver, @bbondy, @bsclifton
darkdh added a commit to brave/muon that referenced this issue Dec 27, 2017
fix brave/browser-laptop#11988
fix brave/browser-laptop#11527

2. Don't check user initiated video
fix brave/browser-laptop#12149

3. Default allow muted media
fix brave/browser-laptop#12152

4. Default allow for local files
fix brave/browser-laptop#8929

Auditors: @bridiver, @bbondy, @bsclifton
@bugchk
Copy link

bugchk commented Dec 29, 2017

+1

darkdh added a commit to brave/muon that referenced this issue Dec 29, 2017
fix brave/browser-laptop#11988
fix brave/browser-laptop#11527

2. Don't check user initiated video
fix brave/browser-laptop#12149

3. Default allow muted media
fix brave/browser-laptop#12152

4. Default allow for local files
fix brave/browser-laptop#8929

Auditors: @bridiver, @bbondy, @bsclifton
darkdh added a commit to brave/muon that referenced this issue Dec 29, 2017
fix brave/browser-laptop#11988
fix brave/browser-laptop#11527

2. Don't check user initiated video
fix brave/browser-laptop#12149

3. Default allow muted media
fix brave/browser-laptop#12152

4. Default allow for local files
fix brave/browser-laptop#8929

Auditors: @bridiver, @bbondy, @bsclifton
darkdh added a commit to brave/muon that referenced this issue Dec 29, 2017
fix brave/browser-laptop#11988
fix brave/browser-laptop#11527

2. Don't check user initiated video
fix brave/browser-laptop#12149

3. Default allow muted media
fix brave/browser-laptop#12152

4. Default allow for local files
fix brave/browser-laptop#8929

Auditors: @bridiver, @bbondy, @bsclifton
darkdh added a commit to brave/muon that referenced this issue Dec 29, 2017
fix brave/browser-laptop#11988
fix brave/browser-laptop#11527

2. Don't check user initiated video
fix brave/browser-laptop#12149

3. Default allow muted media
fix brave/browser-laptop#12152

4. Default allow for local files
fix brave/browser-laptop#8929

Auditors: @bridiver, @bbondy, @bsclifton
@darkdh darkdh modified the milestones: Backlog (Prioritized), 0.20.x (Beta Channel) Dec 29, 2017
@bsclifton bsclifton modified the milestones: 0.20.x (Beta Channel), 0.19.x Hotfix 11 (Release Channel) Jan 4, 2018
@kjozwiak
Copy link
Member

kjozwiak commented Jan 4, 2018

@darkdh I'm still seeing Uncaught (in promise) DOMException: play() can only be initiated by a user gesture. within the console here and there when loading http://byblosradio.com/ in a brand new profile using 0.19.125 under Linux. However, after a few seconds, the audio eventually starts playing. However, most of the websites seem like they're working correctly.

STR:

  • load http://byblosradio.com/ within a brand new profile
  • open the browser console and you'll notice the above error

Example:

screen shot 2018-01-04 at 4 10 07 pm

@darkdh
Copy link
Member

darkdh commented Jan 4, 2018

that is the different error Failed to load because no supported source was found. which is not related to autoplay

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

Successfully merging a pull request may close this issue.