EllisLab text mark
Advanced Search
1 of 3
1
   
Video Player plugin for Youtube, Vimeo, Dailymotion, Veoh, MySpace & more
Posted: 05 November 2009 10:26 AM
Avatar
Joined: 2006-04-10
97 posts

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} 
 Signature 

Benjamin David | Connect to YouTube and Vimeo with Video Player for ExpressionEngine 2

 
Posted: 10 November 2009 07:17 AM   [ # 1 ]   [ Rating: 0 ]
Joined: 2004-05-15
25 posts

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"
 
Posted: 10 November 2009 02:40 PM   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2006-04-10
97 posts

Hi Steef and thanks for your feedback ! I’ve had a similar issue too. I’ve updated the plugin and everything should be OK. Video Player now works with or without the “www.” segment.

The next release should take Video Player out of beta.

 Signature 

Benjamin David | Connect to YouTube and Vimeo with Video Player for ExpressionEngine 2

 
Posted: 16 November 2009 10:25 AM   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2002-12-06
4640 posts

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?

 Signature 

Get the missing EE2 owner’s manual - a complete guide to building an EE2 site.  It’s available in PDF or print.

 
Posted: 16 November 2009 10:14 PM   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2006-04-10
97 posts
Boyink! - 16 November 2009 03:25 PM

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 smile

 Signature 

Benjamin David | Connect to YouTube and Vimeo with Video Player for ExpressionEngine 2

 
Posted: 17 November 2009 11:05 AM   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2006-04-10
97 posts

v1.0.1 has been released :
Using preg_match() instead of ereg() (ereg function has been deprecated in the upcoming PHP 5.3.0)

 Signature 

Benjamin David | Connect to YouTube and Vimeo with Video Player for ExpressionEngine 2

 
Posted: 24 November 2009 03:16 PM   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2008-05-08
33 posts

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.

 Signature 
 
Posted: 25 November 2009 08:01 AM   [ # 7 ]   [ Rating: 0 ]
Avatar
Joined: 2006-04-10
97 posts
dapacreative - 24 November 2009 08:16 PM

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 ?

 Signature 

Benjamin David | Connect to YouTube and Vimeo with Video Player for ExpressionEngine 2

 
Posted: 25 November 2009 12:44 PM   [ # 8 ]   [ Rating: 0 ]
Avatar
Joined: 2008-05-08
33 posts

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} 
 Signature 
 
Posted: 02 December 2009 08:39 AM   [ # 9 ]   [ Rating: 0 ]
Avatar
Joined: 2007-12-06
179 posts

Does this work with viddler also?

 Signature 

web design edinburgh
Follow swanify on Twitter
Codeigniter Linkedin Group

 
Posted: 03 December 2009 12:45 PM   [ # 10 ]   [ Rating: 0 ]
Avatar
Joined: 2008-05-08
33 posts

Problem finally solved. I just need to edit a section posting preferences to not automatically turn URLs and email addresses into links. Ugh!

 Signature 
 
Posted: 07 December 2009 09:55 AM   [ # 11 ]   [ Rating: 0 ]
Avatar
Joined: 2006-04-10
97 posts
dapacreative - 03 December 2009 05:45 PM

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.

Matthew Lanham - 02 December 2009 01:39 PM

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.

 Signature 

Benjamin David | Connect to YouTube and Vimeo with Video Player for ExpressionEngine 2

 
Posted: 08 December 2009 01:34 PM   [ # 12 ]   [ Rating: 0 ]
Joined: 2006-01-06
261 posts

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.

 
Posted: 09 December 2009 12:57 PM   [ # 13 ]   [ Rating: 0 ]
Avatar
Joined: 2006-04-10
97 posts
therooster - 08 December 2009 06:34 PM

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.

Matthew Lanham - 02 December 2009 01:39 PM

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 ?

 Signature 

Benjamin David | Connect to YouTube and Vimeo with Video Player for ExpressionEngine 2

 
Posted: 21 December 2009 09:37 AM   [ # 14 ]   [ Rating: 0 ]
Avatar
Joined: 2002-11-05
91 posts

Hi Banjamin,


what about the EE 2.0 support grin

Any news grin

Mario

 Signature 

Mario Rodríguez, Bilbao (Spain)

Kreatibe

Hardware:
iMac 24” - Powerbook G4 17” 1.33Ghz - Canon 5D Mark II - Zoom H4N - eReader Sony PRS-T1

Apps:
Final Cut Studio 3, PluralEyes, TeamViewer, MindManager,  Omnioutliner Pro, Adobe CS 5.5, Omnifocus, Audio Hijack Pro…
Platforms:
Expression Engine 2, InvisionPower Suite, Wordpress, Zenfolio, Vimeo, Basecamp…
“don’t think you know”

 
Posted: 23 December 2009 07:05 PM   [ # 15 ]   [ Rating: 0 ]
Avatar
Joined: 2006-04-10
97 posts

Hi Mario, I updated the post so you can download the plugin for EE 2.0. I forgot it was on a private forum smile

 Signature 

Benjamin David | Connect to YouTube and Vimeo with Video Player for ExpressionEngine 2

 
1 of 3
1