最終更新:2012-02-20 (月) 02:12:33 (4675d)  

Mobile Safari/videoタグ
Top / Mobile Safari / videoタグ

制限事項とか

自動再生

メモ

  • iOS 3.2?.xまではJSで頑張ればできたっぽい。
  • iOS 4.2?ではオーディオはiframe使えばできたっぽい。
  • iOS 5では無理っぽい。

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()">

参考

関連