Ant-Media-Server icon indicating copy to clipboard operation
Ant-Media-Server copied to clipboard

Conference Room functionality suddenly not working as expected after upgrading to AMS 2.10

Open JosephTico opened this issue 1 year ago • 2 comments

Short description

Brief description of what happened It appears that the behavior of the rooms has changed in version 2.10 in a breaking way. This is a major issue for us, as we expect that breaking changes are well communicated and conform to semver versioning, yet this didn't happen this time.

Details about adding/setting/modifying Rooms via the API just suddenly disappeared from the API docs without warning too, instead of keeping them for a while and adding a deprecation warning.

Environment

  • Operating system and version: Ubuntu 22.04
  • Ant Media Server version: Enterprise Edition 2.10.1 20240812_0537
  • Browser name and version: Chrome

Steps to reproduce

  1. Create a stream via the API using /v2/broadcasts/create
  2. Create an empty room via the API with a custom roomId (/v2/broadcasts/conference-rooms)
  3. Add the previously created stream with id streamId to the room /v2/broadcasts/conference-rooms/#{room_id}/add.

Expected behavior

Stream was added successfully. This was the behavior up to 2.9.

Actual behavior

error: There is no stream with id:(streamId) as subtrack or (roomId) as mainTrack

JosephTico avatar Aug 16 '24 17:08 JosephTico

Hi @JosephTico, Thanks for reporting. You are right about backward compatibility and deprecation process. Actually we apply the same way you mentioned while deprecating some APIs. As you can see here we tagged the REST method as deprecated before. Besides, we didn't totally remove the REST method and tried to adapt it with the new conferencing structure. Let us check the scenario you provided and understand why it doesn't work. You may continue with the previous release until we finalize our investigation. Alternatively, you may consider adapting your code with the new conferencing structure in which we removed conference data structure and started to use broadcast object instead. So you need to create broadcast object (lets say main track) with /v2/broadcasts/create instead of room creation with /v2/broadcasts/conference-rooms. Also add your streams to main track as subtracks with this method. I tried to explain it roughly. If you prefer adapting your code, we can discuss more.

burak-58 avatar Aug 20 '24 08:08 burak-58

Agent Mohit Dubey linked Freshdesk ticket 132543 for this issue.

muratugureminoglu avatar Aug 20 '24 09:08 muratugureminoglu