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.
Can we have options to hide Youtube and Vimeo hide title, logo, and other elements from video player?
Comment | File | Size | Author |
---|---|---|---|
#23 | video_embed_field-embedding-options-2861429-22.patch | 32.24 KB | Prem Suthar |
#13 | 2861429-13.patch | 6.46 KB | dww |
#8 | adds-youtube-and-vimeo-options-for-hiding-elements-2861429-8.patch | 6.44 KB | cristian100 |
#3 | Video Embed Field New Options.jpg | 26.9 KB | cristian100 |
Comments
Comment #2
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedYou already opened #2861425: More Embedding Options.
Comment #3
cristian100The attached patch adds the following new options to display widget:
This works best with Youtube current player available options by url and also for Vimeo.
Comment #4
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedI don't think modest branding is an option for vimeo? This is not a feature that is common across all providers, so it doesn't belong in the plugin interface. We've leaned towards really easy programatic overrides instead of providing every option for every provider, hence the description in the linked issue.
Comment #5
cristian100Hi Sam, so excited to see you very alert on this.
I'm reopening this ticket, as the previous one you pointed out before was incorrectly created, and this is the one I want to keep open (if you don't mind).
I agree that not all options are available to all video providers players.
Having that said, I would like to request a feature, where not-developers could easily select these kind of options for each provider, it would need to be outside of the manage display window.
I would be trying to build and propose this feature, in case this ticket is closed, I will reopen it with a proposed solution.
Thanks,
Comment #6
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedPlease see the reasoning in #2635576: Consider deprecating the concept of 'Video Styles' for 8.x to not do this. At this stage I consider it outside the 80% use case and thus a "wont fix".
Comment #7
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedAs an alternative, "enable modest branding by default" would be something to consider.
Comment #8
cristian100This patch has been updated to have Modest Branding enabled by default. I hope this gets approved and be useful for more people as it is for me.
Thanks for the suggestion and advise Sam.
Comment #9
cristian100Comment #10
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedBy saying:
I meant, specifically keep it out of the interface, but make it the default behaviour for the youtube provider.
Comment #11
Ives CreditAttribution: Ives commentedPatch #8 works for me (D8.5). I just had to change one thing to make it work with Video Embed WYSIWYG:
Change video_embed_field/modules/video_embed_wysiwyg/src/Plugin/Filter/VideoEmbedWysiwyg.php:91
to
Comment #12
cshimer CreditAttribution: cshimer commentedHi - I have a need to not display the title of only one of many embedded videos on a site. This update would be very useful for me. Any idea when it might be released? I do know that &showinfo is deprecated since September of 2018.
Thanks,
Cheryl
Comment #13
dwwI needed this for a site where folks are embedding Vimeo and getting a bunch of junk they don't want to see.
Re-rolled for 8.x-2.x branch.
Added 'portrait' to the query that we generate to turn off the Vimeo smiley face, too. ;)
I don't expect the maintainers to commit this anytime soon, but I'm uploading here so I can safely deploy via composer for now...
Cheers,
-Derek
Comment #14
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedI have indeed marked the module as "Maintenance fixes only", since it's functionality is almost entirely supported by core now.
Comment #15
dwwYeah, I was actually shocked when I realized/discovered the site was still using this module. ;) It's now on a TODO list to migrate to core's video field, but for now, I just needed a quick/dirty solution to make them happy.
Thanks for your work on this and sorry for the noise,
-Derek
Comment #16
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedNo problem at all, hopefully you get it all sorted. Good luck.
Comment #17
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedAlso as a side note, I've updated the project page with a fairly in-ya-face warning, which should hopefully reduce the number of new sites that choose to use it.
Comment #18
B-Prod CreditAttribution: B-Prod commentedRe-roll of #13 with a fix for Youtube autoplay. Legacy code...
Comment #19
3liTried patch #18 and found it worked fine for adding new embeds but breaks existing ones.
This is because it tries to validate the default settings, however the old embeds don't have these settings.
Have made some changes so that the new settings are not required.
Edit: Sorry attached the wrong patch, see below.
Comment #20
3liComment #21
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedWith the advent of Media in core, the Video Embed Field module has moved to being minimally maintained. Only issues which assist in the migration to Media in core will be committed. To read more about this decision, please see: #3089599: Maintenance status for Video Embed Field now that media is in core.
Comment #22
Prem Suthar CreditAttribution: Prem Suthar at Srijan | A Material+ Company for Drupal India Association commentedadd the new patch For Mute the Video.
Comment #23
Prem Suthar CreditAttribution: Prem Suthar at Srijan | A Material+ Company for Drupal India Association commentedRe-roll of #22 For Solve the error