These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:04 pm Advanced search

HTML5 Video issue

If you are stuck or have questions regarding HTML or other Web technologies, ask your questions here. No question too dumb!

HTML5 Video issue

Postby handemmet » Thu May 31, 2012 8:56 am


Can anybody help ne with this issue?
I have a video player that has 4 source links for ".mp4. .webm, .ogv, flv".
When I play the video files on my desktop using VLC Player........they work fine.
But when I view them in the browsers, the .mp4, .webm and .ogv files play half their width. (flv plays fine).
Here is the source code I use in the html file:

Code: Select all
<video width="648" height="365" controls autoplay>
<!-- MP4 must be first for iPad! -->
<source src="" type="video/mp4" /><!-- Safari / iOS, IE9 -->
<source src="" type="video/webm"/><!-- Chrome10+, Ffx4+, Opera10.6+ --> 
<source src="" type="video/ogg" /><!-- Firefox3.6+ / Opera 10.5+ --> 

<!-- fallback to Flash: -->
<object width="648" height="365" type="application/x-shockwave-flash" data="player.swf"> 
<!-- Firefox uses the `data` attribute above, IE/Safari uses the param below -->
<param name="movie" value="player.swf" />
<param name="flashvars" value="autostart=true&amp;controlbar=over&amp;image=poster.jpg&amp;file=" />

<!-- fallback image -->
<img src="images/error.jpg" width="648" height="365" alt="Erro Message" title="No video playback capabilities, please view this site in Chrome." /> 

Thanks for your help
Posts: 10
Joined: Thu May 31, 2012 8:50 am

Re: HTML5 Video issue

Postby zcorpan » Mon Sep 10, 2012 10:12 am

The webm URL gives a 404 now (only tried that one). Do you have working links to the videos? I guess there's a problem with getting the correct intrinsic dimensions of the videos. Does it happen in all browsers? Which encoder did you use? What parameters?
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Return to Help & Advice

Who is online

Users browsing this forum: No registered users and 1 guest