Run the Demo quickly

Please download HBuilderX and log in and complete the UNI developer certification before starting.

steps

  1. The browser opens the plug-in home page

  2. Click on the right to import the sample project using HBuilderX (you can also download the ZIP file)

  1. Follow the prompts to the HBuilderX screen and click Create

  1. Once created, go back to HBuilderX, open Mainfest.json, click basic Configuration, and you will see the AppId automatically obtained by the system.

  1. Next, go back to the plug-in home page and click Buy plug-in.

Enter the application package name as required.

  1. Go back to HBuilderX, click on the App native plugin configuration, select the cloud plugin, and select the plugin you just purchased.

  1. Create custom docking stations, and if you are native, generate native App development resources and package them in the native environment. If not, please choose UNI cloud packaging.

Steps:

  • run
  • Run to your phone or emulator
  • Make custom base

Note: When the cloud is packaged, if your UNI developer account has not been authenticated to the community, the following will appear

Just follow its prompts to complete the verification. After verification, repackage the package as shown in Step 7.

When the package is successfully packaged, the console prints

At this point, the custom base has been successfully generated. Find the APK in the output directory and install it on the phone. Note that you need to install the base here.

  • With the custom dock, we were ready to run the project, but before we could do that, we had to select the custom dock and configure anyRTC’s developer information.

  • Select custom base

  • Configure developer information

If you have not registered anyRTC developer account, please go to anyRTC official website to register and create an App. Copy the AppId and fill it in the file below.

AppId: indicates the application ID generated by anyRTC

Channel: Multiple devices can communicate with each other after entering the same channel

Uid: individual ID within a channel

Uid and channel are generated in the code

  1. Run.

Q&A

  1. joinChannl of undefined

Generally, plug-ins fail to be introduced. Please carefully check whether there are native plug-ins configured and select custom pedestals.

  1. Keep going round and round, joining in?

This is because the channel failed to join. If the plug-in is configured and registered to obtain anyRTC AppId, check that the AppId is correct

By anyRTC – Coast