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]
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?
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
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’);
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.
hmm, that’s wierd. i used micro video encoder
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.
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>
Working for me in Chrome, Firefox, and IE9.