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.
Hi,
I'm trying to embed a video from YouTube.
I don't want it to autoplay but it does even when Autoplay is set to zero.
Any thoughts?
Comments
Comment #1
saurabh.dhariwal CreditAttribution: saurabh.dhariwal at AddWeb Solution Pvt. Ltd. commentedI checked same stuff at my local and this is done after making some change for autoplay functionality.
Code requires change at line 34 :
Find below three liner code into "video_filter/editors/tinymce/video_filter.js" line number around 34.
And replace above three lines with below code:
Now after this change, the video could not auto play until you set "Default autoplay setting" as "Yes".
Let me know if you face any query regarding this.
Thanks!
Comment #2
sheldonkreger CreditAttribution: sheldonkreger as a volunteer commentedThat solution may work for TinyMCE but will not work for CKEditor. The good news is that the autoplay:0 config works in CKEditor. Anything we can do on the Drupal level rather than in the JS libraries to make this work for everybody?
Comment #3
blackdog CreditAttribution: blackdog commentedThis is fixed in #2187589.