I have learned about real-time audio and video recently. I have seen the IM SDK of rongyun before, so I will start from Rongyun this time.

On the whole, it didn’t go well. I had writing problems.

Problems encountered

  1. When does the anchor render the video resource?

  2. The audience has no access to the mic.

  3. Audience operation slightly confused.

  4. Spectator side call join room error.

Problems are solved one by one, through careful documentation and work orders.

Problem 1: Anchors can render when they obtain resources. Question 2: The audience can only call room. Leave to exit the room temporarily, and then call subscription to re-subscribe the anchor, which I think is very strange. Rongyun did not give feedback to this function later, the body feeling is good, at least we will consider our developer’s opinion and give a thumbs up ~. The viewer also needs to execute the preconditions to initialize the connection between IM and RTC, and then directly call stream.subscribe to the host resource, which seems quite convenient. Problem 4: Error 53004 was reported when calling to join the room. After searching for a long time, I didn’t find any problem. Later, I found that I didn’t pay attention to the document and the role at the initial stage. All right

The above four questions are a bit trivial in nature, but they are really stuck. Fortunately, it all worked out perfectly.

I refer to the code in the document, if you have similar problems can also take a look at the document I see.

Connection class: preconditions for reference, note the role issues in the initial RTC. Documents: the docs. Rongcloud. Cn/v2 / views/rt…

Anchor side: This is easy, except for some rendering issues, the overall flow is very smooth. Documents: the docs. Rongcloud. Cn/v2 / views/rt…

Audience side: subscription under good docs. Rongcloud. Cn/v2 / views/rt…

Also referred to the rongyun Demo, get the need to replace the new version of the SDK can be used directly, guidance is good. You can also download it and run around. It can be downloaded through the tutorial. Docs. Rongcloud. Cn/v2 / views/rt…

Finally, with rongyun’s official documents, if interested, you can go to understand the experience. The initial experience was a bit bumpy, but everything worked out. Finally, attach rongyun official: www.rongcloud.cn/