Help with set up instrcuctions of video.js

Discussion in 'JavaScript' started by chrisj, Jun 3, 2013.

  1. #1
    I've gotten limited help trying to set up this player:
    http://www.videojs.com/docs/setup/
    The link instructions are pretty short/(easy for someone more skilled than me), but I need some advice, please. The self-hosted instructions show this:

    <link href="http://example.com/path/to/video-js.css" rel="stylesheet">
        <script src="http://example.com/path/to/video.js"></script>
        <script>
          _V_.options.flash.swf = "http://example.com/path/to/video-js.swf"
        </script>
    
    Code (markup):
    The help I got added this code to appropriate file:
    <link href="http://theurl.com/video-js/video-js.css" rel="stylesheet">
    <script src="http://theurl.com/video-js/video-js.css"></script>
    <script>
          _V_.options.flash.swf = "http://theurl.com/video-js/video-js.swf"
    </script>
     
    <video id="mp4" class="video-js vjs-default-skin"
          controls preload="auto" width="640" height="264"
          poster="http://video-js.zencoder.com/oceans-clip.png"
          data-setup='{"example_option":true}'>
          <source src="http://theurl.com/uploads/" type='video/mp4' />
    </video>
    Code (markup):
    According to the very short instructions at http://www.videojs.com/docs/setup/
    does this new added code look right?​
     
    chrisj, Jun 3, 2013 IP
  2. ronsard

    ronsard Member

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #2
    If you are trying to get this code working on WordPress, you might be better off with a ready made player like FV Flowplayer. I think something similar exists for video.js. Building working video wrappers is no joke.

    Good luck. Keep us posted.
     
    ronsard, Jun 4, 2013 IP
  3. chrisj

    chrisj Well-Known Member

    Messages:
    606
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    Not Wordpress
     
    chrisj, Jun 4, 2013 IP