Add Option to hide controls in Youtube Video Formatter.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jadsay created an issue. See original summary.

jadsay’s picture

jadsay’s picture

Status: Active » Needs review
dgtlmoon’s picture

Status: Needs review » Postponed (maintainer needs more info)

Have you tried the option Hide progress bar and player controls at /admin/structure/file-types/manage/video/file-display ?

NicolasH’s picture

Status: Postponed (maintainer needs more info) » Active

Choosing Hide progress bar and player controls under /admin/structure/file-types/manage/video/file-display will set the autohide=1 property, but not the controls=0 one. Autohide will still show the controls when hovering over the video.

Example of rendered HTML:
<iframe class="media-youtube-player" width="640" height="390" title="TEST VIDEO" src="//www.youtube.com/embed/C0DPdy98e4c?wmode=opaque&amp;modestbranding=1&amp;rel=0&amp;showinfo=0&amp;autohide=1" frameborder="0" allowfullscreen="">Video of TEST VIDEO</iframe>

With and option to completely hide the controls it would be:
<iframe class="media-youtube-player" width="640" height="390" title="TEST VIDEO" src="//www.youtube.com/embed/C0DPdy98e4c?wmode=opaque&amp;modestbranding=1&amp;rel=0&amp;showinfo=0&amp;autohide=1&amp;controls=0" frameborder="0" allowfullscreen="">Video of TEST VIDEO</iframe>

mhmhartman’s picture

The patch added in https://www.drupal.org/node/2637826#comment-10683468 still applies to the latest version and does the job. It would be nice to see this in future versions.

joseph.olstad’s picture

Status: Active » Fixed

Committed to 7.x-3.x dev branch

Thanks!

  • jadsay authored 70cbfe6 on 7.x-3.x
    Issue #2637826 by jadsay, joseph.olstad: Add Option to hide controls in...

Status: Fixed » Closed (fixed)

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