ipad - Playing mp4 video with Phonegap on iOS -
i have phonegap application targeting ipad needs embed video on 1 of pages. i've found forum posts , other claiming possible using video tag html5. here's code i'm using:
<video id="video01" width="770" height="433" controls="controls" preload="auto" poster="splash.png"> <source src="movies/myvideo.mp4" type="video/mp4" /> </video>
this code snippet works great in safari, when loaded via phonegap onto ipad shows splash image crossed-over play button (like video didn't load right).
perhaps there nuance playing video on ios i'm not aware of? or there small formatting issue video itself. video formatted h264 wrapped in mp4 container.
maybe issue in video codec. try setting h.264 level 3.1 or lower.
i ran similar issue recently. problem in video codec, rendering video in adobe after effects (cs5.5) , when exporting h.264 settings on level: 5.1. came across post on video bitrates on ipad , saw highest setting might 3.1. figured "why not" , gave try. worked.
Comments
Post a Comment