WordPress.org

Ready to get started?Download WordPress

Forums

Video.js - HTML5 Video Player for WordPress
[resolved] Player Loading - but video not playing (10 posts)

  1. xforextrade
    Member
    Posted 1 year ago #

    hi,

    i've been trying to figure this out for some time. i put the following code into a wordpress test post, but the video isn't playing.

    can i get some help?

    [video mp4="www.xforextrade.com/wp-content/uploads/2012/12/XforextradeFinalprog.mp4" autoplay="true" width="640" height="264"][/video]

    the address is: http://www.xforextrade.com/test

    http://wordpress.org/extend/plugins/videojs-html5-video-player-for-wordpress/

  2. Dustin Lammiman
    Member
    Plugin Author

    Posted 1 year ago #

    You need to have http:// at the beginning of your url:
    [video mp4="http://www.xforextrade.com/wp-content/uploads/2012/12/XforextradeFinalprog.mp4" autoplay="true" width="640" height="264"][/video]

    Or if you want a relative URL: [video mp4="/wp-content/uploads/2012/12/XforextradeFinalprog.mp4" autoplay="true" width="640" height="264"][/video]

  3. xforextrade
    Member
    Posted 1 year ago #

    Hey Dustin,

    Wow!!! That was hours of frustration solved in two seconds....I think you should emphasize that in your help document man =) Like in BIG BOLD LETTERS "MUST HAVE HTTP:// IN URL

    My main question now is it possible to insert this code into a Text widget? I just want to be able to play it on my homepage without hardcoding it, but throwing it into a widget. I tried it, and it just posts the the code, - i.e. no player.

    is there any benefit to uploading 3 different versions to my server? I.e. using different formats? or is mp4 enough?

    Also the video seems to run smoothly in chrome, but in firefox its stalling - do you see that too?

  4. xforextrade
    Member
    Posted 1 year ago #

    Now for some reason, i can't get the video to work in firefox or i.e. - it works in chrom - got any ideas? here's the link: http://www.xforextrade.com/traderush

  5. xforextrade
    Member
    Posted 1 year ago #

    Btw anyone looking for this answer i found it regarding widgets:

    To display shortcodes in widgets , use a regular text widget, and add this line to your theme's functions.php file:

    // Use shortcodes in text widgets.
    add_filter('widget_text', 'do_shortcode');

  6. Dustin Lammiman
    Member
    Plugin Author

    Posted 1 year ago #

    Have a look at http://blog.nosecreekweb.ca/wordpress/reliable-html5-video-made-easy/#preparing-your-video.

    Basically, having only mp4 means Firefox will have to fallback to flash. So, its a good idea to also include either webm or ogg as well. The hangup in Firefox and IE is likely caused by an mp4 that wasn't properly encoded to h.264. I find that these will usually play fine in Chrome, but not other browsers. See the Encoding your videos and Preparing your .mp4s sections in that article for more info.

  7. xforextrade
    Member
    Posted 1 year ago #

    hmm, that's wierd. i used micro video encoder

  8. Dustin Lammiman
    Member
    Plugin Author

    Posted 1 year ago #

    I'd try to at least follow the steps in "Preparing your .mp4s". Even if it was encoded properly this could help. And adding webm or ogg should fix it in Firefox.

  9. xforextrade
    Member
    Posted 1 year ago #

    i did it already tho.

    can you see if its working by you?

    http://www.xforextrade.com

    that's the link

    here's my code:

    <video id="Xforextrade.com-Binary-Options-Make-Money-Online" class="video-js vjs-default-skin" controls width="600" height="338" poster="http://www.xforextrade.com/wp-content/uploads/2012/12/whats-the-secret.jpg" autoplay preload="auto" data-setup="{}">
    <source type="video/mp4" src="http://www.xforextrade.com/wp-content/uploads/2012/12/binaryoptions.mp4">
    <source type="video/ogg" src="http://www.xforextrade.com/wp-content/uploads/2012/12/binaryoptions.oggtheora.ogv">
    <source type="video/webm" src="http://www.xforextrade.com/wp-content/uploads/2012/12/binaryoptions.webmhd.webm">
    </video>

  10. Dustin Lammiman
    Member
    Plugin Author

    Posted 1 year ago #

    Working for me in Chrome, Firefox, and IE9.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.