Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
Share
LinkBack Thread Tools
Old 02-20-2013, 03:13 PM   #1
Mr Fix.
War Room Member
 
Okenyon's Avatar
 
Join Date: Mar 2010
Posts: 308
Thanks: 35
Thanked 37 Times in 20 Posts
Social Networking View Member's Twitter Profile 
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
Old 02-20-2013, 04:35 PM   #2
WP Dev & Design
War Room Member
 
David V's Avatar
 
Join Date: Mar 2011
Location: NH, FL, & Wherever I May Roam
Posts: 662
Blog Entries: 4
Thanks: 83
Thanked 228 Times in 183 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
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 Now LIVE!! JVZoo POTD!
if (!question_exist ('are_you_for_hire'); echo '<"99% Not For Hire">';
David V is offline   Reply With Quote
Old 02-21-2013, 02:19 AM   #3
Mr Fix.
War Room Member
 
Okenyon's Avatar
 
Join Date: Mar 2010
Posts: 308
Thanks: 35
Thanked 37 Times in 20 Posts
Social Networking View Member's Twitter Profile 
Default Re: Video not playing on some browsers

Using JWPlayer - thanks so much.

Okenyon is offline   Reply With Quote
Old 02-21-2013, 02:34 AM   #4
ResponsiveDesignTest.Net
Registered Member
 
Michael71's Avatar
 
Join Date: Nov 2011
Location: Spain
Posts: 735
Thanks: 97
Thanked 198 Times in 171 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Contact Info
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 3/Twitter Bootstrap 2/Wordpress/Frontend Performance Optimizing
---
Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu
Michael71 is offline   Reply With Quote
Old 02-21-2013, 08:37 AM   #5
Advanced Warrior
War Room Member
 
Brandon Tanner's Avatar
 
Join Date: Jul 2006
Location: USA
Posts: 2,811
Thanks: 208
Thanked 1,363 Times in 677 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

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

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 07:03 AM.