Skip to content

power saving mode #1013

Answered by mihar-22
pietrop asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Pietro!

The way we handle autoplay in the library is that we call play() manually and look for an error to be thrown to detect failure. We don't rely on the native autoplay attribute, which I believe is the same for most modern player libraries. We call the onAutoplayFail callback in React and apply the data-autoplay-error attribute to the player element for styling purposes. Some more information available in our API > Autoplay page.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pietrop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants