Meeting Conference With Ant Media

ERP Solutions oodles
2 min readMar 29, 2024

We’ll talk about several Ant Media Server video conferencing options in this blog post.

SFU Video Conference via Stream

This is AMS’s first solution to be put into practice. It directly interacts with WebRTC streams.

  1. A join request for the room is sent to AMS by the participant when they join it.
  2. In response, AMS provides the participant’s stream ID (stream_id) as well as a list of all the other participants’ stream IDs (stream_id) in the same room.
  3. Starting now, he or she will publish a WebRTC stream using their stream ID (stream_id).
  4. One by one, he/she sends WebRTC play requests for every stream ID they obtain.
  5. The information for the participants who have just entered or departed should be obtained periodically, together with the room’s stream IDs. Then, the returning stream IDs should be compared to the list he previously had.
  6. He or she cancels requests for removed IDs and sends play requests for new stream IDs.
  7. To exit the room, use Ant Media’s calling leave technique. (sending a stop request for each ID is not necessary).
  8. The SFU Video Conference solution that is stream-based operates in a clustered mode. Publish ensures that every play request a participant sends is routed to the same cluster node. Therefore, in this kind of cluster, there is no need to distinguish between the origin and the edge.

Also, Read Delegation Pattern and The By Keyword

Track-Based Video Conference at SFU

This is an updated AMS conference solution. It does not use streams; instead, it uses WebRTC tracks. This blog post offers more information regarding multitrack streaming for users.

  1. A join request for the room is sent to AMS by the participant when they join it.
  2. The participant’s stream ID (stream_id) is returned by AMS in response.
  3. With his or her stream ID (stream_id), he or she begins to publish a WebRTC stream.
  4. For the room ID, he or she just sends one WebRTC play request.
  5. AMS notifies participants who have recently joined or departed using the app. (Applied to UI).
  6. To exit the room and the meeting, simply use the calling depart procedure.

Also, Read How To Improve Angular Application Performance

MCU Teleconference

The user in an MCU video conference will have access to a single output stream per room. The blended audio and combined video are available in this feed. Users of this kind of conference will hear your audio in the mixed audio, which is a disadvantage. Therefore, MCU is utilised in addition to other kinds of video conferencing solutions to obtain a single stream for sharing or recording the room’s audio and video players — not the participants.

By including the mode=”mcu” element in a join request, users can activate this video conference. For the JS SDK, users can also view the conference.html sample page. Users can personalise this page by playing the merged video instead of the mixed audio to stop hearing their own audio. Rather than having mixed sounds, you can play audio streams for each participant individually.

--

--

ERP Solutions oodles

We are a leading ERP development company in India offers a wide range of ERP software development services to help you grow your business exponentially.