Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

I want to get the embedded video URL


Hi,

I have here a video on the home page - 101greatgoals.com.
I would like to make it more viral and offer a like and share button for the video it self.
I think there might be a way to get the post url because the video is inside a post, but maybe I can get a direct URL to video it self.

If it was the main URL I could use something like this:

$uri = 'http'. ($_SERVER['HTTPS'] ? 's' : null) .'://'. $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];


But I need to make the video it self or the video's post, shareable, and not the current URL.

14 Community Answers

JW Player

User  
-1 rated :

have you looked at the following

http://www.longtailvideo.com/addons/plugins/110/Sharing?q=share%20alt=

Ethan Feldman

JW Player Support Agent  
0 rated :

If you want it to be automatically generated, this plugin works, as well – http://www.longtailvideo.com/addons/plugins/47/Viral

JW Player

User  
0 rated :

I want to get the video URL automatically.
I don't want to use a plugin for that, but if a plugin has the hook that I need, it will be great.

Don't you have on JW Player some hooks like on WordPress - get_permalink() or something like that?

Your two replies gives me a URL to share or like but I don't have the code to get the URL it self.

Thanks

Ethan Feldman

JW Player Support Agent  
-1 rated :

The plugin doesn’t have a hook like this…

JW Player

User  
0 rated :

Can I take the common Facebook Like Button and get a dynamic video URL from JWPlayer code?

If there is no hook, is there any other way?

If different plugins recognize the video URL, I'm sure we can do it here as well.

BTW, how do I get to the SWF URL of each video? Like on Youtube..

Thanks!

Ethan Feldman

JW Player Support Agent  
0 rated :

Since the FB like API just references the overall url to the page itself, that is what our plugin does. It just grabs the current URL that the player is on.

JW Player

User  
0 rated :

Ok thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

JW Player

User  
0 rated :

Hi,

I am using your BOTR wordpress plugin with Viral enabled in the player.

The video does show on Facebook, but the url links to the video itself instead of to the webpage. Is this default behaviour of the Viral addon or is their a bug or interference with another plugin (using the 'official' facebook plugin as well)?

Is it possible to get the video url with the BOTR API? The Facebook plugin offers a filter to set the meta properties. That way I can make the two plugins compatitble.

Thanks.

Ethan Feldman

JW Player Support Agent  
0 rated :

Going to forward this one to the right person…

Remco van Bree

JW Player Support Agent  
0 rated :

Hi Jelle. You need to set the “link” property of a video (only accessible through the Bits dashboard I’m afraid, although this can be set via the API if you feel adventurous) to the URL of the post that the video is embedded in. We’re aware that this is rather complicated.

You can get the “link” property of the video with the /videos/show call and set it with the /videos/update call (http://developer.longtailvideo.com/botr/system-api/methods/videos/index.html).

JW Player

User  
0 rated :

Hi Remco,

Thank you. I discovered that if you set the link in the botr dashboard, it links to the webpage itself. However, the video no longer shows on facebook. Hence, it is either the video or the link to the webpage and I want them both :-) Wouldn't this be a more beneficial default setup for most users?

Actually. I feel adventurous. I already use the filter provided by the Facebook plugin to set some video meta tags. Only thing left to add is the video url. All my posts contain a video via botr hence it has to be dynamic.

Can I call the video url based on the added botr shortcode?

JW Player

User  
1 rated :

Mistread your post. I do not want to set the link in botr via api.

I would like to get the link to the video and set the video url as a meta property myself.

Remco van Bree

JW Player Support Agent  
1 rated :

If you want sharing to still link to the post and yet facebook wall embed continue to work, you will need to copy some of the open graph tags from the preview page (in the embed dialog => Preview and then view source => the og:video tag)

I hope this helps.

This question has received the maximum number of answers.