Handle video / audio auto play
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 17.6k
- Forks
- 4.4k
- PR merge metrics
- No merged PRs in 30d
Description
Brainstorming. Dealing with browser autoplay policies is one of the most confusing things for beginners.
Why my audio / video is not playing? Probably one of the top 5 most asked questions ever.
Thinking if there's something that A-Frame can do to handle user gesture gracefully. For instance, detect if there is any a-video, a-audio tags in a-assets with autoplay then present a modal prompting the user to start audio / video playback. This would be enabled by default but can be disabled.
Concern is that is that it might be too prescriptive, making things even more confusing. I see new devs asking Why there's a prompt asking the user to play / video? How can I remove it?. Maybe just expanding the FAQ or docs would be the better way.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the linked FAQ entry about why video does not play and the issue's autoplay-policy proposal. Determine whether the project wants a user-gesture modal or expanded documentation, then define the scope and acceptance criteria before implementation. Done means the chosen approach is agreed and the autoplay behavior or FAQ guidance is covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100