Skip to content

Handle video / audio auto play #5216

@dmarcos

Description

@dmarcos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions