Various workarounds exist, but are less than ideal. ![]() It’s historically been difficult to determine whether user interaction is required to start playback, and to detect the failures that happen when (automatic) playback is attempted and fails. This helps ensure that mobile users, many of whom pay for bandwidth or who might be in a public environment, don’t accidentally start downloading and playing media without explicitly interacting with the page. Most mobile browsers, however, require an explicit user gesture before JavaScript-initiated playback can occur. ![]() Today, most desktop browsers will always allow web pages to begin or playback via JavaScript without user interaction. ![]() Automatically playing audio and video on the web is a powerful capability, and one that’s subject to different restrictions on different platforms.
0 Comments
Leave a Reply. |