html5 video tag -quality of video different in firefox and chrome -


i have following code:

  <div class="span4">    <video poster="assets/img/poster.jpg" controls="controls" width="420" height="420">     <source src="assets/videos/152638831.webm" type="video/webm"  />     <source src="assets/videos/152638831.mp4" type="video/mp4"  />   </video>  </div>    

the video works in both firefox , chrome, in chrome, it's very grainy. don't think it's issue video because when navigate http://www.w3schools.com/html/html5_video.asp using chrome, video under section called "dom methods , properties" appears grainy. when grainy, mean, see yellow, green, blue , red lines / dashes spattered across video.

can tell me i'm doing wrong?

also, idea behind having multiple source tags depending on browser, select file play? in case, know firefox doesn't support mp4... tested it. above code works in firefox. i'm assuming it's playing webm version of file. correct?

thanks.

first of all, chrome should able read mp4 perhaps didn't use h264 compression. should check on that.

second, must include compressed ogv, , webm versions of video. each browser supports different video format @ moment have include them no 1 gets left out.

here handy chart browser video format support : http://www.longtailvideo.com/html5/#media_formats

don't forget flash fall-back either, incase dinosaur browser doesn't support html5 video tag needs see video too.

here handy chart video tag support : http://caniuse.com/video

let know how on.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -