ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.29k stars 632 forks source link

Possibility to prevent same room id being recreated on deletion #5922

Open MaZZly opened 10 months ago

MaZZly commented 10 months ago

Is your feature request related to a problem? Please describe.

When we do a DELETE /v2/broadcasts/conference-rooms/{room_id} the Javascript SDK can still recreate and start publishing to the same room_id (effectively recreating it)

Describe the solution you'd like

Possibility to prevent the same room_id from being recreated after deletion (for some time), this could be an option param for the call, or maybe a server setting?

Describe alternatives you've considered

Somehow limiting that rooms can only be created by server through the REST API before JS API can publish to it. But not sure if this is supported or not? docs are not helpful sadly..

Additional context

The docs are not helpful

burak-58 commented 10 months ago

Hi @MaZZly , For old stream-base conferencing, there is an application setting acceptOnlyRoomsInDataStore for that. If you set it you can join only the room that is created in advance.

For the multitrack conference, after version 2.8.0 server don't use room structure anymore. Instead, a broadcast object as a main track will have the participants as subtracks. So you can prevent server with acceptOnlyStreamsInDataStore setting. So that, new broadcast object (main track) can only be created by REST API.