Browser-laptop: DOMException: play() can only be initiated by a user gesture

Created on 14 Oct 2017  路  14Comments  路  Source: brave/browser-laptop

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: https://github.com/brave/browser-laptop/issues/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: cddf9a560535f889201fc0157ebf0b982ea19c00
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:

0.18.x Qchecked-Linux Qchecked-Win64 Qchecked-macOS Qtest-plan-specified bug prioritP3 release-noteinclude webcompat

All 14 comments

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

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.

Added priority/p3 based on https://github.com/brave/browser-laptop/issues/10972#event-1303228168 (Google Play Music broken). There seems to be a bunch of other sites which do not work due to this issue.

Also DuckDuckGo Tracks via search result is affected

Same for deezer.com (music streaming).

+1

Have the same problem on SoundCloud.

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

+1

@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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shortstuffsushi picture shortstuffsushi  路  3Comments

antiroyalty picture antiroyalty  路  3Comments

bsclifton picture bsclifton  路  3Comments

briannyeko picture briannyeko  路  3Comments

jonathansampson picture jonathansampson  路  3Comments