-
AuthorPosts
-
December 19, 2024 at 1:42 am #1473963
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.
December 20, 2024 at 5:48 am #1474039Hey 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,
IsmaelDecember 20, 2024 at 8:31 pm #1474083The other videos on my page that use this feature worked without disabling the audio.
- This reply was modified 1 month, 1 week ago by stevengamez.
December 23, 2024 at 6:35 am #1474166Hi,
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,
IsmaelDecember 23, 2024 at 6:27 pm #1474195I’m on the page right now and the 2 other videos play with sound on autoplay in the lightboxin chrome. They are not muted. Why would this be if it is not allowed? I did add the code to mute but it still did not autoplay… The large video below to 2 youtube shorts.
- This reply was modified 1 month ago by stevengamez.
December 25, 2024 at 7:28 am #1474246Hi,
Thank you for the update.
It plays on your end due to the following points mentioned in the browser policy:
— 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 a video with sound.Please review the browser policy and mute the video to enable autoplay.
Best regards,
IsmaelDecember 27, 2024 at 7:35 pm #1474320Thank you!
December 27, 2024 at 7:41 pm #1474322Hi,
Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Image lightbox url with YouTube video not playing automatically’ is closed to new replies.