Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically play audio from one chapter to the next #3

Closed
marisademeglio opened this issue Oct 20, 2021 · 3 comments
Closed

Automatically play audio from one chapter to the next #3

marisademeglio opened this issue Oct 20, 2021 · 3 comments
Labels
seefix There's a fix available for review

Comments

@marisademeglio
Copy link
Member

marisademeglio commented Oct 20, 2021

When one HTML page's audio narration ends, the next page in the sequence is automatically loaded. But the audio doesn't keep playing automatically due to browsers' autoplay policies.

I would like the browser to ask the user to grant permission for autoplay across all the documents in the book, something like:

Browser: Grant media autoplay for https://BookProvider.com/BookTitle/* ?
User: Yes please thank you

The result would be that all pages at that address can now automatically play media.

TODOs for the time being:

marisademeglio referenced this issue Oct 20, 2021
Selectively try to autoplay pages depending on if the user was listening to the previous page in the sequence (aka spine) and came to this page automatically.

Autoplay itself however does not work (see https://github.com/daisy/accessible-books-on-the-web/issues/3)
@marisademeglio
Copy link
Member Author

noting this here to read later w3c/autoplay#13 (comment)

@marisademeglio
Copy link
Member Author

This should be something to be configured on the server via a permissions policy but in practice, it doesn't work in browsers. However, there is a user-controllable setting that can enable autoplay, and that works. See some experiments I did.

@marisademeglio marisademeglio added the seefix There's a fix available for review label Sep 2, 2024
@marisademeglio
Copy link
Member Author

Should be fixed by
441da2d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
seefix There's a fix available for review
Projects
None yet
Development

No branches or pull requests

1 participant