Hi, I have a image widget with a ligthbox open for a youtube url which is added to the backend. For some reason this particular video is not opening and playing automatically. I added the code ?autoplay=1 to the end of the video in the manual url. I have 2 other videos on that particular page that do work and play automatically in the lightbox… I have added the full url to private content. Please advise.
Hey stevengamez,
Thank you for the inquiry.
You may need to disable the audio by adding the mute parameter.
https://www.youtube.com/watch?v=x15sE0vgBGY?autoplay=1&mute=1
Please note that autoplay is only allowed on muted videos.
Best regards,
Ismael
The other videos on my page that use this feature worked without disabling the audio.
Hi,
Thank you for the update.
The other two videos were muted when we checked. Have you tried adding the mute parameter? As mentioned above, autoplay is not allowed when videos are not muted.
Chrome’s autoplay policies are simple:
Muted autoplay is always allowed.
Autoplay with sound is allowed if:
— The user has interacted with the domain (click, tap, etc.).
— On desktop, the user’s Media Engagement Index threshold has been crossed, meaning the user has previously played video with sound.
— The user has added the site to their home screen on mobile or installed the PWA on desktop.
— Top frames can delegate autoplay permission to their iframes to allow autoplay with sound.
Please check this link for more info: https://developer.chrome.com/blog/autoplay
Best regards,
Ismael