Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
ckngThis is available under MediaInternetYouTubeHandler->getOEmbed(), to provide an oEmbed content.
Comment #2
Devin Carlson CreditAttribution: Devin Carlson commentedYou can alter
media-youtube-video.tpl.php
to provide any additional HTML (such as an embed button) that you require.