This document describes how to quickly run the TRTC demo for Windows.
QT VS Tools > Qt Options > Qt Versions
, and add an MSVC compiler.SDK/CPlusPlus/Win32/lib
to the debug
/release
folder of the project directory.
Note:The
debug
/release
folder is created automatically after environment setup is completed in VS.
You have signed up for a Tencent Cloud account.
TestTRTC
. If you have already created an application, select Existing.Note:
- 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.
GenerateTestUserSig
file:Platform | Relative Path to File |
---|---|
Windows (C++) | Windows/DuilibDemo/GenerateTestUserSig.h |
Windows (C#) | Windows/CSharpDemo/GenerateTestUserSig.cs |
GenerateTestUserSig.js
file:Note:
- The method for generating
UserSig
described in this document involves configuringSECRETKEY
in client code. In this method,SECRETKEY
may 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
UserSig
distribution method is to integrate the calculation code ofUserSig
into your server and provide an application-oriented API. WhenUserSig
is needed, your application can send a request to the business server for a dynamicUserSig
. For more information, please see How do I calculate UserSig on the server?.
DuilibDemo\TRTCDuilibDemo.sln
in the source code directory, and compile and run the demo project. We recommend building the project in the release mode for x86.CSharpDemo\TRTCCSharpDemo.sln
in the source code directory, and compile and run the demo project. We recommend building the project in the release mode for x86.QTDemo\QTDemo.pro
in the source code directory, and compile and run the QTDemo project.TRTC SDK 6.6 (August 2019) and later versions use the new signature algorithm HMAC-SHA256. If your application was created before August 2019, you need to upgrade the signature algorithm to get a new key. Without upgrading, you can continue to use the old algorithm ECDSA-SHA256. After upgrading, you can switch between the new and old algorithms as needed.
Upgrade/Switch:
Make sure that the two devices use different UserIDs
. With TRTC, you cannot use the same UserID
on two devices simultaneously unless the SDKAppIDs
are different.
The SDK uses the UDP protocol for audio/video transmission and therefore cannot be used in office networks that block UDP. If you encounter such a problem, please see How to Deal with Firewall Restrictions.
Was this page helpful?