最終更新:2012-02-20 (月) 02:12:33 (4675d)
Mobile Safari/videoタグ
Top / Mobile Safari / videoタグ
制限事項とか
自動再生
メモ
Appleの仕様
- In Safari on iOS (for all devices, including iPad), where the user may be on a cellular network and be charged per data unit, preload and autoplay are disabled. No data is loaded until the user initiates it. This means the JavaScript play() and load() methods are also inactive until the user initiates playback, unless the play() or load() method is triggered by user action. In other words, a user-initiated Play button works, but an onLoad="play()" event does not.
This plays the movie: <input type="button" value="Play" onClick="document.myMovie.play()">
This does nothing on iOS: <body onLoad="document.myMovie.play()">
参考
- http://stackoverflow.com/questions/3009888/autoplay-audio-files-on-an-ipad-with-html5
- http://stackoverflow.com/questions/4259928/how-can-i-autoplay-media-in-ios-4-2-1-mobile-safari
- http://stackoverflow.com/questions/8276202/autoplay-audio-with-ios-5-mobile-safari-any-workarounds-left