Freelancer.com

Go Back   Warrior Forum - The #1 Internet Marketing Forum & Marketplace > Warrior Support Forums > Programming
Register Blogs Social Groups Advertise with usHelp Desk

Reply
LinkBack Thread Tools
Unread 20th February 2013, 04:13 PM   #1
Mr Fix.
War Room Member
 
Okenyon's Avatar
 
Join Date: 2010
Posts: 318
Thanks: 35
Thanked 37 Times in 20 Posts
Default Video not playing on some browsers

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.

Okenyon is offline   Reply With Quote
Unread 20th February 2013, 05:35 PM   #2
WP Dev & Design
War Room Member
 
David V's Avatar
 
Join Date: 2011
Location: USA
Posts: 713
Blog Entries: 4
Thanks: 89
Thanked 236 Times in 192 Posts
Default Re: Video not playing on some browsers

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.

PluginCreationBlueprint is Closed!! JVZoo POTD!
if (!question_exist ('are_you_for_hire'); echo '<"99% Probably Not">';
David V is offline   Reply With Quote
Unread 21st February 2013, 03:19 AM   #3
Mr Fix.
War Room Member
 
Okenyon's Avatar
 
Join Date: 2010
Posts: 318
Thanks: 35
Thanked 37 Times in 20 Posts
Default Re: Video not playing on some browsers

Using JWPlayer - thanks so much.

Okenyon is offline   Reply With Quote
Unread 21st February 2013, 03:34 AM   #4
ResponsiveDesignTest.Net
Registered Member
 
Michael71's Avatar
 
Join Date: 2011
Location: Rostock, Germany
Posts: 829
Thanks: 106
Thanked 223 Times in 193 Posts
Default Re: Video not playing on some browsers

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   Reply With Quote
Unread 21st February 2013, 09:37 AM   #5
Advanced Warrior
War Room Member
 
Brandon Tanner's Avatar
 
Join Date: 2006
Location: USA
Posts: 2,824
Thanks: 227
Thanked 1,395 Times in 687 Posts
Default Re: Video not playing on some browsers

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   Reply With Quote
Reply

  Warrior Forum - The #1 Internet Marketing Forum & Marketplace > Warrior Support Forums > Programming

Bookmarks

Tags
browsers, playing, video

Thread Tools

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 09:54 AM.