Broadcast custom layout

Hello,

I am using the broadcast feature in my application and need to change the camera layout. I have followed the documentation, created an HTML file, and inserted it into the server. However, when I broadcast, the result is a white screen. I would like an example of an HTML file with the layouts to compare with mine and check if there is something wrong. I have already tried using the example HTML from the documentation, but it did not work either.

Thank you for your assistance.

Hi,

Try configuring this property in the OpenVidu deployment:

OPENVIDU_RECORDING=true

It seems that there is a bug that makes this property necessary in order to use custom layouts in broadcasting, even when no using the recording feature.

I’ve added a note to the broadcasting documentation warning about this:

It worked, now I have another question. I have 2 layouts (example-1.html and example-2.html). Is there a way to switch between layouts without having to make stop and start requests again to switch between layouts?

It is not possible to do that. Nonetheless, you can build your own layout to support dynamic updates through a specific Session signal. The recording layout is a web app that connects to your session as a subscriner-only participant, so it could update its layout on its own when receiving certain signal.