Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 20th Feb 2013, 04:13 PM   #1
HyperActive Warrior
War Room Member
 
Okenyon's Avatar
 
Join Date: 2010
Location: UK
Posts: 377
Thanks: 35
Thanked 39 Times in 20 Posts
Default
Video not playing on some browsers
Share on: 
fb share twitter share gplus share more share

Code:
<video id="my_video_1" class="video-js vjs-default-skin" controls
  preload="auto" autoplay width="640" height="360"
  data-setup="{}">
  <source src="video/thedojoaffiliatesystem.mp4" type='video/mp4'>
</video>
So this is my code however it only seems to play on chrome and safari

can anyone tell me why and also recommend a fix/different code?

thanks.

Owner at Internet Marketing Deals and Coupons and Landing Page Guys, fully qualified chef turned online entrepreneur, lover of Prosecco and LFC.

More about me here.
Okenyon is offline  
Unread 20th Feb 2013, 05:35 PM   #2
WP Dev & Design
War Room Member
 
Join Date: 2011
Location: Earth
Posts: 787
Thanks: 92
Thanked 271 Times in 226 Posts
Blog Entries: 4
Default
Re: Video not playing on some browsers
Share on: 
fb share twitter share gplus share more share

Looks like your using the Videojs.com html5 code.
Browser support is likely the issue for the mp4.
This html5 test site will help you determine what will/won't work.

You may need a fallback type like ogg or use a different method to deliver the video like JWplayer, etc... that provides multiple types and fallbacks. Just an idea...

Just as a note:
If your .mp4 file uses MPEG-4 compression then you want to convert it using the more efficient H.264.
David V is offline  
Unread 21st Feb 2013, 03:19 AM   #3
HyperActive Warrior
War Room Member
 
Okenyon's Avatar
 
Join Date: 2010
Location: UK
Posts: 377
Thanks: 35
Thanked 39 Times in 20 Posts
Default
Re: Video not playing on some browsers
Share on: 
fb share twitter share gplus share more share

Using JWPlayer - thanks so much.

Owner at Internet Marketing Deals and Coupons and Landing Page Guys, fully qualified chef turned online entrepreneur, lover of Prosecco and LFC.

More about me here.
Okenyon is offline  
Unread 21st Feb 2013, 03:34 AM   #4
ResponsiveDesignTest.Net
Registered Member
 
Michael71's Avatar
 
Join Date: 2011
Location: Rostock, Germany
Posts: 829
Thanks: 106
Thanked 225 Times in 194 Posts
Default
Re: Video not playing on some browsers
Share on: 
fb share twitter share gplus share more share

Take a look here:

Can I use... Support tables for HTML5, CSS3, etc

You need a fallback or different video formats to play in most browsers.

HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
---
Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu
Michael71 is offline  
Unread 21st Feb 2013, 09:37 AM   #5
Advanced Warrior
War Room Member
 
Brandon Tanner's Avatar
 
Join Date: 2006
Location: USA
Posts: 1,907
Thanks: 236
Thanked 1,377 Times in 676 Posts
Default
Re: Video not playing on some browsers
Share on: 
fb share twitter share gplus share more share

To cover all browsers, you need to specify multiple 'sources' (ie mp4 AND webm), and use Flash fallback for older browsers.

Read everything on this page...

Using the HTML5 Video Tag | LongTail Video | Home of the JW Player

Your code should look similar to the example at the bottom of that page.


Brandon Tanner is offline  
Closed Thread


Bookmarks

Tags
browsers, playing, video


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 08:11 AM.