Inspiration: Agora RTC/RTM Debugging Tool

Original link: https://www.ixiqin.com/2022/05/22/inspiration-agora-rtc-rtm-debugging-tools/

18972e3582430bbcce0460e01097d842.jpg

I am writing some tutorials on Agora’s RTC/RTM applications recently. During the development of the Demo, I found that debugging Agora’s applications is more complicated. In fact, there are some auxiliary tools to help developers develop these applications better.

core demands

It is easier to debug Events in Agora SDK

form

  1. Standalone Vue Component / React Component
  2. Browser-based DevTools

basic skills

  • Support trigger events (should be a column of buttons, after the user clicks, the corresponding event will be triggered)
  • Support sending information (should be a text box + a submit button)
    • Support setting Template
  • Support viewing the existing information in the channel (it is better to have a filter, so that it is convenient to only see the information that you are concerned about)
  • Support viewing basic information such as Client and Track (such as current number of people, current user list, etc.)

Why must it be an independent Client?

In actual development, the logic of the business and the functions actually used may require multiple steps to reach. In addition, according to the characteristics of the application, there may also be browser locking, device locking and other business capabilities. Although these capabilities have nothing to do with Agora, they will affect the difficulty of debugging. Therefore, it is a good choice to have a separate Client that can be used to debug Agora.

Why is Component/Devtools better?

In the actual development process, we may use Agora’s Token mechanism. With this mechanism, we can set the entry threshold for our audio/video channel and reduce costs. But correspondingly, it is more troublesome to debug.

If it is Component / Devtools, AppID and Token can be set by passing in Props / environment variables, reducing the cost of debugging.

This article is reprinted from: https://www.ixiqin.com/2022/05/22/inspiration-agora-rtc-rtm-debugging-tools/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment