2 videos each playing their own sound at the same time

Hello, I would like my two videos to play their sound at the same time. The idea is that I want to play the sound and audio of video 2 and only the sound of video 2 (I reduce the size of video 2 and that way I only have the sound of 2), video 2 is a YouTube video.
Thank you for your help.
@pork1977gm ?

Hi elarchi75,

I’m pretty sure the plugin won’t allow you to do this because I’ve put in some controls to disable it this behaviour since videos can still play audio when in groups that have been made not visible but are still rendered on the page. I had a lot of requests from people to stop the audio when this happens and it played havoc when the player was put into a repeating group also.

What you might want to do is just create yourself a simple HTML element and pop the code in there to load the YouTube video. This way it will be separate from the plugin and you should be able to control the audio/video.

The HTML element would look like this below for a YouTube video. Notice the mute parameter, 1 is muted, 0 is not.

<iframe src="https://www.youtube.com/embed/ckxYA-BPZlo?autoplay=1&mute=0" title="YouTube video player" frameborder="0" allow="autoplay; picture-in-picture" allowfullscreen></iframe>

Hopefully this will help you get things working how you need to. You can set the HTML element’s width and height to 0 x 0 (or 1 x 1 if Bubble doesn’t render it with 0).

Paul

Thank you very much Paul.

Hicham El Archi

1 Like