Can we have options to hide Youtube and Vimeo hide title, logo, and other elements from video player?

Comments

cristian100 created an issue. See original summary.

cristian100’s picture

Version: 8.x-1.x-dev » 8.x-1.4
Sam152’s picture

Category: Feature request » Support request

You can set params in the video URL programatically, see ./video_embed_field/video_embed_field.api.php. YouTube allows this:

/**
 * Preprocess iframes in the format of preprocess_video_embed_iframe__PROVIDER.
 *
 * Allows you to preprocess video embed iframes but only for specific providers.
 * This allows you to, for instance control things specific to each provider.
 * For example, if you wanted to enable a specific youtube feature by altering
 * the query string, you could do so as demonstrated.
 */
function hook_preprocess_video_embed_iframe__youtube(&$variables) {
  // Remove the YouTube logo from youtube embeds.
  $variables['query']['modestbranding'] = '1';
}
cristian100’s picture

Status: Needs review » Closed (outdated)

This ticket got accidentally created, the correct one is this:
https://www.drupal.org/node/2861429