We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Video Player plugin for Youtube, Vimeo, Dailymotion, Veoh, MySpace & more

Development and Programming

Benjamin David's avatar
Benjamin David
77 posts
15 years ago
Benjamin David's avatar Benjamin David

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}
       
stefanschuur's avatar
stefanschuur
21 posts
15 years ago
stefanschuur's avatar stefanschuur

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"}
       
Benjamin David's avatar
Benjamin David
77 posts
15 years ago
Benjamin David's avatar Benjamin David

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.

       
Boyink!'s avatar
Boyink!
5,011 posts
15 years ago
Boyink!'s avatar Boyink!

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?

       
Benjamin David's avatar
Benjamin David
77 posts
15 years ago
Benjamin David's avatar Benjamin David
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 😊

       
Benjamin David's avatar
Benjamin David
77 posts
15 years ago
Benjamin David's avatar Benjamin David

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

       
dapacreative's avatar
dapacreative
21 posts
15 years ago
dapacreative's avatar dapacreative

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.

       
Benjamin David's avatar
Benjamin David
77 posts
15 years ago
Benjamin David's avatar Benjamin David
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 ?

       
dapacreative's avatar
dapacreative
21 posts
15 years ago
dapacreative's avatar dapacreative

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}
       
Matthew Lanham's avatar
Matthew Lanham
145 posts
15 years ago
Matthew Lanham's avatar Matthew Lanham

Does this work with viddler also?

       
dapacreative's avatar
dapacreative
21 posts
15 years ago
dapacreative's avatar dapacreative

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

       
Benjamin David's avatar
Benjamin David
77 posts
15 years ago
Benjamin David's avatar Benjamin David
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.

       
the_crimsonrooster's avatar
the_crimsonrooster
264 posts
15 years ago
the_crimsonrooster's avatar the_crimsonrooster

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.

       
Benjamin David's avatar
Benjamin David
77 posts
15 years ago
Benjamin David's avatar Benjamin David
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 ?

       
Mario Rodríguez's avatar
Mario Rodríguez
72 posts
15 years ago
Mario Rodríguez's avatar Mario Rodríguez

Hi Banjamin,

what about the EE 2.0 support 😊

Any news 😊

Mario

       
1 2 3

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.