Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Can't enable autoplay for embedded audio media #1231

Closed
hhxiaohei opened this issue May 16, 2019 · 5 comments · Fixed by #1312
Closed

Can't enable autoplay for embedded audio media #1231

hhxiaohei opened this issue May 16, 2019 · 5 comments · Fixed by #1312
Assignees
Labels
bug This issue is a software or functional defect compatibility Web content compatibility issues size: 2
Milestone

Comments

@hhxiaohei
Copy link

Hardware

Pico VR G2

Steps to Reproduce

1.A vr web page

<audio id="music" src="1.mp3" autoplay="autoplay"></audio>

2.on Chrome,FF PC can autoplay,but in FirefoxReality audio is not work

FirefoxReality tell me:

 The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.

How can the audio autoplay by js or other? Thx!

@philip-lamb philip-lamb added bug This issue is a software or functional defect compatibility Web content compatibility issues needinfo Further information is requested P3 Backlog labels May 21, 2019
@philip-lamb
Copy link
Contributor

@philip-lamb philip-lamb changed the title The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. Can't enable autoplay for embedded audio media May 21, 2019
@jvonitter jvonitter added this to the v1.3 milestone May 23, 2019
@bluemarvin
Copy link
Contributor

The settings dialog just needs the option added to it. GeckoView should already have the required API.

@philip-lamb philip-lamb removed the needinfo Further information is requested label Jun 6, 2019
@philip-lamb
Copy link
Contributor

Based on UX design from Firefox, add setting in Security and Privacy pane, below the permissions settings, English text "Block websites from automatically playing sound", defaulting to enabled.

@philip-lamb
Copy link
Contributor

We'll need a separate issue to track allowing this on a per-site basis.

@philip-lamb philip-lamb assigned keianhzo and unassigned bluemarvin Jun 6, 2019
@jvonitter
Copy link
Contributor

@thenadj - We're going to add this setting in since it's also in desktop and mobile. It'll use the same language and placement as we do there. No design needed, just FYI

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue is a software or functional defect compatibility Web content compatibility issues size: 2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants