Skip to content

FaceBeauty/FBTRTCDemo_iOS

Repository files navigation

TRTC API-Example

中文 | English

Background

This open-source demo shows how to use some APIs of the TRTC SDK to help you better understand the APIs and use them to implement some basic TRTC features.

Contents

This demo covers the following features (click to view the details of a feature):

Environment Requirements

  • Xcode 11.0 and above
  • Please make sure that your project has set a valid developer signature

Demo Run Example

Prerequisites

You have signed up for a Tencent Cloud account and completed identity verification.

Obtaining SDKAPPID and SDKSECRETKEY

  1. Log in to the TRTC console and select Application Management > Create application.
  2. Enter an application name such as TestTRTC, and click Next.

 #900px 3. Click Next to view your SDKAppID and key.

Configuring demo project files

  1. Open the GenerateTestUserSig.h file in the Debug directory.
  2. Configure two parameters in the GenerateTestUserSig.h file:
  • SDKAPPID: PLACEHOLDER by default. Set it to the actual SDKAppID.
  • SDKSECRETKEY: left empty by default. Set it to the actual key.  #900px
  1. Return to the TRTC console and click Next.
  2. Click Return to Overview Page.

!The method for generating UserSig described in this document involves configuring SDKSECRETKEY in client code. In this method, SDKSECRETKEY may be easily decompiled and reversed, and if your key is disclosed, attackers can steal your Tencent Cloud traffic. Therefore, this method is suitable only for the local execution and debugging of the demo. The correct UserSig distribution method is to integrate the calculation code of UserSig into your server and provide an application-oriented API. When UserSig is needed, your application can make a request to the business server for dynamic UserSig. For more information, please see How to Calculate UserSig.

Configuring CDN parameters (optional)

To use CDN services, which are needed for co-anchoring, CDN playback, etc., you need to configure three live streaming parameters.

For detailed instructions, see CDN Relayed Live Streaming.

Compiling and running the project

Use XCode (11.0 and above) to open TRTC-API-Example-OC.xcodeproj in the source directory

Contact Us

  • If you have questions, see FAQs.

  • To learn about how the TRTC SDK can be used in different scenarios, see Sample Code.

  • For complete API documentation, see SDK API Documentation.

  • Communication & Feedback
    Welcome to join our Telegram Group to communicate with our professional engineers! We are more than happy to hear from you~ Click to join: https://t.me/+EPk6TMZEZMM5OGY1
    Or scan the QR code

About

FaceBeauty美颜SDK在腾讯实时音视频中的集成demo - iOS版

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages