Html5 video not playing in ipad simulator

htmlipadiphoneobjective cuiwebview

I created xcode universal project, I am trying to load HTML5 page in UIWebView the

problem is i cant see any control to play movie, and i am getting blank screen on the video

place, in ipad and iphone simulator,

my .html file

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
    "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <!-- Change this if you want to allow scaling -->
    <meta name="viewport" 
        content="width=default-width; user-scalable=no" />
 
    <meta http-equiv="Content-type" 
        content="text/html; charset=utf-8">
 
    <title>Web App Demo</title>
 
  </head>
  <body>
    <h1>Video Test</h1>
    <p>This is a video test.</p>
    <video width="320" height="240" controls= "controls">
        <source src="video.ogv" type="video/ogg" />
        <source src="video.mp4" type="video/mp4"/>
             browser not supports the video
    </video>
    </br> <br/>
    <h1>This is Audio </h1>
    <b>Testing Audio </b>
    <audio controls="controls">
        <source src="audio.ogg" type="audio/ogg" />
        <source src="audio.mp3" type="audio/mpeg"/>
        browser not supporting audio
    </audio>

  </body>
</html>

Any help why its not playing in simulator.

Thanks in advance.

Best Answer

I have seen this before when there are url issues -- like capitalization... The simulator is more relaxed than the device... Check the exact file names...