This document describes how to quickly run the TRTC demo for Flutter.
Currently, the demo for Windows/macOS only supports audio but not video APIs. It supports video calls on Android/iOS.
You have signed up for a Tencent Cloud account and completed identity verification.
TestTRTC. If you have already created an application, click Select Existing Application.
- An application name can contain up to 15 characters. Only digits, letters, Chinese characters, and underscores are allowed.
- Tags are used to identify and organize your Tencent Cloud resources. For example, an enterprise may have multiple business units, each of which has one or more TRTC applications. In this case, the enterprise can tag TRTC applications to mark out the unit information. Tags are optional and can be added or edited according to your actual business needs.
In the Modify Configuration step, select the development platform in line with the source package downloaded.
Find and open
Set parameters in
GenerateTestUserSig.dart as follows.
Click Next to complete the creation.
After compilation, click Return to Overview Page.
- The method for generating
UserSigdescribed in this document involves configuring
SECRETKEYin client code. In this method,
SECRETKEYmay be easily decompiled and reversed, and if your key is leaked, attackers can steal your Tencent Cloud traffic. Therefore, this method is only suitable for the local execution and debugging of the demo.
- The correct
UserSigdistribution method is to integrate the calculation code of
UserSiginto your server and provide an application-oriented API. When
UserSigis needed, your application can send a request to the business server for a dynamic
UserSig. For more information, please see How do I calculate UserSig on the server?.
flutter pub get.
/ios demo project in the source code directory with Xcode (11.0 or above) and compile and run the demo project.
flutter config --enable-windows-desktop.
flutter run -d windows.
flutter config --enable-macos-desktop.
flutter run -d macos.
TRTC logs are compressed and encrypted by default with the
.xlog extension at the following address:
Documents/login the sandbox.
Please check whether
YES in your
For more FAQs, please see Flutter.