Video Player is a plugin that lets you easily get the embed player code for Youtube, Vimeo, Dailymotion, Veoh, MySpace, Metacafe and Revver videos, from the video URL.
Download and documentation have moved. Checkout the links below for more about Video Player
Video Player 1.2 for ExpressionEngine EE 1.6 & EE 2.0
{exp:videoplayer src="http://www.youtube.com/watch?v=h1qYN3YtPfU"}
{exp:videoplayer src="http://www.youtube.com/watch?v=h1qYN3YtPfU" width="800" height="600"}
{exp:videoplayer:details src="http://www.youtube.com/watch?v=h1qYN3YtPfU"}
{video_id}, {service}, {embed}, {error}
{/exp:videoplayer:details}
Thanks Benjamin!
I was searching for a descent Vimeo solution for Expression Engine. This might be a bug?:
When using the URL for the video, be sure not to use ‘www.’
So
{exp:videoplayer src="http://vimeo.com/658158" width="800" height="600"}
Instead of:
{exp:videoplayer src="http://www.vimeo.com/658158" width="800" height="600"}
Hey Benjamin - I’m looking at using this on a client site, so have to ask: Will you be re-writing it for EE 2.0?
Hi Michael, the plugin will be ready for EE 2.0.
I’ve also made an update, and you can now set an error message if the video service is not found.
Please let me know the url of the site, I’d be curious to see how you used the plugin 😊
Is this only set up to work with full url’s and not EE variables. I created a custom field group and am trying to pull the url through that field but it does not seem to be working.
Hi there, the plugin is actually supposed to work with EE tags. I’m using it that way too, with a field for the full video url, and in the template, I just use the tag {video-url} combined with Plugin to make it work.
Could you give some code examples to help me help you better ?
Sure thing, here is the code I am using below:
{if {my_weblog}_video != ""}
<div class="videos">
{exp:videoplayer src="{{my_weblog}_video}" width="245" height="170"}
</div><!-- /.videos -->
{/if}
{{my_weblog}_video} is set up as a text field without any formatting. I posted the full youtube url into this field but it returned no results. When I take that same url and put it directly into the code then it worked fine.
I also want to ultimately set this up as an embed like this:
{exp:weblog:entries weblog="{embed:weblog}" limit="1" sort="desc" status="Open|Member" show_empty="no"}
{if {embed:weblog}_video != ""}
<div class="videos">
{exp:videoplayer src="{{embed:weblog}_video}" width="245" height="170"}
</div><!-- /.videos -->
{/if}
{/exp:weblog:entries}
Problem finally solved. I just need to edit a section posting preferences to not automatically turn URLs and email addresses into links. Ugh!
Sorry for the late answer I’ve been a bit off my computer. Thanks for pointing out this issue ! I’m so used to turn OFF this option that I forgot it could create an issue. This is definitely something I’m going to detail in the instructions, and I’ll try to see if I can make the script handle the URL, even with the option turned ON.
Does this work with viddler also?
The current version only supports YouTube, Vimeo, and Dailymotion but I’ve added your request to support Viddler to the Video Player wishlist, I’ll post a new release tonight or tomorrow.
Thanks for using Video Player and please don’t hesitate to contact me or comment this thread if you want new services or options to be added.
thanks dude!! seems like every time I’m about to implement a new feature, a plugin has been created. I’ll report my results with Vimeo soon.
Glad to hear it, hope you’ll find the plugin useful ! Feel free to ask new features if you feel like something is missing.
Does this work with viddler also?
Viddler I’ve given a look at Viddler integration, and the problem is that the URL doesn’t contain the video id.
For example, this video : http://www.viddler.com/explore/MindlessBlabber/videos/4/
Has this video embed URL : http://www.viddler.com/player/10734f1a/
Would it still do the thing for you to give the video embed URL instead of the “browser” URL ? If not, I think a Viddler plugin calling the API to retrieve the video would do a best job, but this is kind of out the Video Player plugin field (for now).
Automatic URL into link I tried to make the plugin work even if this channel/blog preference is turned on but it seems like the templating system turns the URL into a link before Video Player does the work. The process adds a ” character into the variable and creates an unpatchable issue because it doesn’t pass the value at all after the quote. So it won’t be possible by just giving the URL.
Another solution would be to pass the entry id and the field name where the video URL is saved. What do you think about it ?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.