I see in the youtube api documentation (https://developers.google.com/youtube/js_api_reference) that there is this function:

player.getVideoEmbedCode

So far as I'm aware, media_youtube doesn't make use of this to allow for, say, a button that says "Embed" below the player (or in the social bar) that can be clicked to grab the embed code. If it doesn't exist I will explore the opportunity further.

Or am I wrong and this does exist? If so I apologize and please point me to where that functionality is.

Comments

ckng’s picture

This is available under MediaInternetYouTubeHandler->getOEmbed(), to provide an oEmbed content.

Devin Carlson’s picture

Category: Feature request » Support request
Status: Active » Fixed

You can alter media-youtube-video.tpl.php to provide any additional HTML (such as an embed button) that you require.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.