HTML5 Video not playing in iOS Simulator Safari -
i'm using ios simulator test website on iphone , ipad. have video
tag works in every other browser not ios safari (in simulator - don't have actual iphone/ipad). created video tag here: http://camendesign.com/code/video_for_everybody#video-code
<!-- first try html5 playback: if serving xml, expand `controls` `controls="controls"` , autoplay likewise --> <!-- warning: playback not work on ios3 if include poster attribute! fixed in ios4.0 --> <video width="640" height="360" controls> <!-- mp4 must first ipad! --> <source src="testvideo.mp4" type="video/mp4" /><!-- safari / ios video --> <source src="testvideo.ogv" type="video/ogg" /><!-- firefox / opera / chrome10 --> <!-- fallback flash: --> <object width="640" height="360" type="application/x-shockwave-flash" data="player.swf"> <!-- firefox uses `data` attribute above, ie/safari uses param below --> <param name="movie" value="player.swf" /> <param name="flashvars" value="controlbar=over&image=myimage.jpg&file=testvideo.mp4" /> <!-- fallback image. note title field below, put title of video there --> <img src="__video__.jpg" width="640" height="360" alt="test title" title="no video playback capabilities, please download video below" /> </object> </video> <!-- *must* offer download link may able play file locally. customise bit want --> <p> <strong>download video:</strong> closed format: <a href="testvideo.mp4">"mp4"</a> open format: <a href="testvideo.ogv">"ogg"</a> </p>
what causing issue? simulator or video? or code?
edit: when click video image play, opens quicktime , pops error message: "the operation not completed"
check screenshot. video works fine in ios simulator. refer url - http://camendesign.com/code/video_for_everybody/test.html