android - Detect if browser supports autoplay of embedded media - YouTube playVideo() and iOS -
what's best way observe if browser supports autoplay of embedded media files?
using youtube javascript api, on ios (and perchance android) devices, if phone call playvideo() prior user tapping on video, video set in bad state , useless. might when want autoplay video after page loads, or might have own play/pause button.
there lots of discussions on how autoplay work (see below), way deal observe when shouldn't called. obvious reply observe specific device or os using user agent string, i'm wondering if there's improve way it.
related posts:
youtube iframe api hangs in buffering state after playvideo() command on ipad
can autoplay html5 videos on ipad?
autoplay sound file on mobile safari
how can autoplay media in ios >= 4.2.1 mobile safari?
android ios mobile-safari youtube-javascript-api
No comments:
Post a Comment