![]() All you can really do is examine a few values and make an educated guess as to whether or not autoplay worked.Ī better approach, if you're able to adjust the direction you look at things from, is to instead rely on knowing that playback of the media has successfully started, instead of when it fails to start. Nor is there an exception thrown or a callback you can set up or even a flag on the media element that tells you if autoplay worked. There's not an event triggered when autoplay fails. Unfortunately, in the case of the autoplay attribute, recognizing whether or not autoplay successfully began is tricky. ![]() If you rely on autoplay for anything important, or if autoplay failure will impact your app in any way, you will probably want to be able to tell when it autoplay didn't begin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |