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.
Would it be possible to start the video using JavaScript?
Invoking a click on an element withing the iframe is not allowed to prevent XSS.
Comments
Comment #2
varghese CreditAttribution: varghese as a volunteer commentedWe can set the auto play settings.
configuration->Video Embed Field->Video Embed Styles.
It will list the video style. Edit the style there have the configuration to "Allow Autoplay" the video
example
http://example.com/admin/config/media/vef/vef_video_styles/list/myvideos...
Comment #3
varghese CreditAttribution: varghese as a volunteer commentedComment #4
varghese CreditAttribution: varghese as a volunteer commentedComment #5
mpp CreditAttribution: mpp as a volunteer and at AmeXio commentedThank you for the feedback. While it is nice one can configure autoplay it's (usually) not a good UX practice to autoplay video's.
The initial question is more about dynamically starting the video (using another element or action on the page).