SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    calif
    Posts
    723
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help getting vide.js to work with IE8 and FF

    I'm looking for a little js guidance with this:
    http://www.videojs.com/docs/setup/

    This code I'm currently using plays the video.js player in IOS, IE10 & Chrome, but not IE8 and FF


    Code:
       <script _V_.options.flash.swf = "http://theurl.com/video-js/video.js.swf"
    </script>
    
    <script videojs.options.flash.swf = "http://theurl.com/video-js/video.js.swf"
    </script>
    
    <video id="_1200k.mp4" class="video-js vjs-default-skin"
          controls preload="none" width="640" height="264"
          poster="[var.base_url]/[var.thumb_file]"
          data-setup='{"example_option":true}'>
          <source src="http://theurl.com/uploads/Yr7fGNOH0ell3Ml_1200k.mp4" type='video/mp4' />
    </video>
    I'd like help getting it to work in IE8 and FF. Any help will be greatly appreciated.

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,312
    Mentioned
    177 Post(s)
    Tagged
    8 Thread(s)
    Hi there,

    As mentioned in my previous answer, you might also want to consider including a webm version and/or an ogv version of your file, depending on which browsers you want to support.

    Currently you are only including your film in mp4 format and Firefox does not support this.
    Here's a compatibility chart: http://diveintohtml5.info/video.html#what-works
    To convert mp4 into webm/ogg format I recommend Firefogg

    As for IE 8, it doesn't support the <video> tag, so it will fall back to Flash.
    This code is invalid and will very probably be the reason it isn't working:

    Code:
    <script videojs.options.flash.swf = "http://theurl.com/video-js/video.js.swf"
    </script>
    If you can provide a link to a page where this isn't working, then I don't mind taking a look at you.

    Hope that helps.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •