Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] update version to relesse-11.8.0.5387 #47

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion TRTC-API-Example-OC/App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>3963</string>
<string>5387</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# TRTC API-Example Swift

中文 | [English](README.en.md)
# TRTC API-Example
_中文 | [English](README.md)_

## 前言
这个开源示例Demo主要演示了 [TRTC 实时音视频 SDK](https://cloud.tencent.com/document/product/647/32689) 部分API的使用示例,帮助开发者可以更好的理解 TRTC 实时音视频 SDK 的API,从而快速实现一些音视频场景的基本功能。
Expand All @@ -24,11 +23,13 @@
- [自定义视频采集&渲染](./Advanced/CustomCamera)
- [设置音效](./Advanced/SetAudioEffect)
- [设置背景音乐](./Advanced/SetBackgroundMusic)
- [本地视频文件分享](./Advanced/LocalVideoShare)
- [本地视频录制](./Advanced/LocalRecord)
- [加入多个房间](./Advanced/JoinMultipleRoom)
- [收发SEI消息](./Advanced/SEIMessage)
- [快速切换房间](./Advanced/SwitchRoom)
- [跨房PK](./Advanced/RoomPk)
- [第三方美颜](./Advanced/ThirdBeauty)
- [画中画功能](./Advanced/PictureInPicture)


Expand All @@ -52,8 +53,8 @@


### 配置 Demo 工程文件
1. 打开 Debug 目录下的 [GenerateTestUserSig.swift](Debug/GenerateTestUserSig.swift) 文件。
2. 配置`GenerateTestUserSig.swift`文件中的两个参数:
1. 打开 Debug 目录下的 [GenerateTestUserSig.h](debug/GenerateTestUserSig.h) 文件。
2. 配置`GenerateTestUserSig.h`文件中的两个参数:
- SDKAPPID:替换该变量值为上一步骤中在页面上看到的 SDKAppID。
- SDKSECRETKEY:替换该变量值为上一步骤中在页面上看到的密钥。
![ #900px](https://main.qcloudimg.com/raw/8fb309ce8c378dd3ad2c0099c57795a5.png)
Expand Down
87 changes: 0 additions & 87 deletions TRTC-API-Example-OC/README.en.md

This file was deleted.

168 changes: 85 additions & 83 deletions TRTC-API-Example-OC/README.md
Original file line number Diff line number Diff line change
@@ -1,85 +1,87 @@
# TRTC API-Example
_中文 | [English](README.en.md)_

## 前言
这个开源示例Demo主要演示了 [TRTC 实时音视频 SDK](https://cloud.tencent.com/document/product/647/32689) 部分API的使用示例,帮助开发者可以更好的理解 TRTC 实时音视频 SDK 的API,从而快速实现一些音视频场景的基本功能。

## 结构说明
在这个示例项目中包含了以下场景:(带上对应的跳转目录,方便用户快速浏览感兴趣的功能)

- 基础功能
- [语音通话](./Basic/AudioCall)
- [视频通话](./Basic/VideoCall)
- [视频互动直播](./Basic/Live)
- [语音互动直播](./Basic/VoiceChatRoom)
- [录屏直播](./Basic/ScreenShare)
- 进阶功能
- [字符串房间号](./Advanced/StringRoomId)
- [画质设定](./Advanced/SetVideoQuality)
- [音质设定](./Advanced/SetAudioQuality)
- [渲染控制](./Advanced/SetRenderParams)
- [网络测速](./Advanced/SpeedTest)
- [CDN发布](./Advanced/PushCDN)
- [自定义视频采集&渲染](./Advanced/CustomCamera)
- [设置音效](./Advanced/SetAudioEffect)
- [设置背景音乐](./Advanced/SetBackgroundMusic)
- [本地视频文件分享](./Advanced/LocalVideoShare)
- [本地视频录制](./Advanced/LocalRecord)
- [加入多个房间](./Advanced/JoinMultipleRoom)
- [收发SEI消息](./Advanced/SEIMessage)
- [快速切换房间](./Advanced/SwitchRoom)
- [跨房PK](./Advanced/RoomPk)
- [第三方美颜](./Advanced/ThirdBeauty)
- [画中画功能](./Advanced/PictureInPicture)


## 环境准备
- Xcode 11.0及以上版本
- 请确保您的项目已设置有效的开发者签名


## 运行示例

### 前提条件
您已 [注册腾讯云](https://cloud.tencent.com/document/product/378/17985) 账号,并完成 [实名认证](https://cloud.tencent.com/document/product/378/3629)。


### 申请 SDKAPPID 和 SDKSECRETKEY
1. 登录实时音视频控制台,选择【开发辅助】>【[快速跑通Demo](https://console.cloud.tencent.com/trtc/quickstart)】。
2. 单击【立即开始】,输入您的应用名称,例如`TestTRTC`,单击【创建应用】。

![](https://main.qcloudimg.com/raw/169391f6711857dca6ed8cfce7b391bd.png)
3. 创建应用完成后,单击【我已下载,下一步】,可以查看 SDKAppID 和密钥信息。


### 配置 Demo 工程文件
1. 打开 Debug 目录下的 [GenerateTestUserSig.h](debug/GenerateTestUserSig.h) 文件。
2. 配置`GenerateTestUserSig.h`文件中的两个参数:
- SDKAPPID:替换该变量值为上一步骤中在页面上看到的 SDKAppID。
- SDKSECRETKEY:替换该变量值为上一步骤中在页面上看到的密钥。
![ #900px](https://main.qcloudimg.com/raw/8fb309ce8c378dd3ad2c0099c57795a5.png)

4. 返回实时音视频控制台,单击【粘贴完成,下一步】。
5. 单击【关闭指引,进入控制台管理应用】。

>!本文提到的生成 UserSig 的方案是在客户端代码中配置 SDKSECRETKEY,该方法中 SDKSECRETKEY 很容易被反编译逆向破解,一旦您的密钥泄露,攻击者就可以盗用您的腾讯云流量,因此**该方法仅适合本地跑通 Demo 和功能调试**。
>正确的 UserSig 签发方式是将 UserSig 的计算代码集成到您的服务端,并提供面向 App 的接口,在需要 UserSig 时由您的 App 向业务服务器发起请求获取动态 UserSig。更多详情请参见 [服务端生成 UserSig](https://cloud.tencent.com/document/product/647/17275#Server)。

### 配置CDN 相关(可选)
如果您需要使用CDN相关业务,比如主播使用TRTC SDK互动连麦,观众端播放CDN流这样的方式,您还需要配置如下三个**直播**相关参数:
- `BIZID`;
- `APPID`;
- `CDN_DOMAIN_NAME`;

![ #900px](https://liteav.sdk.qcloud.com/doc/res/trtc/picture/bizid_appid_scree.png)

详细操作可以参考 [实现 CDN 直播观看](https://cloud.tencent.com/document/product/647/16826#.E9.80.82.E7.94.A8.E5.9C.BA.E6.99.AF)

>注意:
>本文提到的生成 UserSig 的方案是在客户端代码中配置 SDKSECRETKEY,该方法中 SDKSECRETKEY 很容易被反编译逆向破解,一旦您的密钥泄露,攻击者就可以盗用您的腾讯云流量,因此**该方法仅适合本地跑通 Demo 和功能调试**。
>正确的 UserSig 签发方式请参见 [服务端生成 UserSig](https://cloud.tencent.com/document/product/647/17275#Server)。

### 编译运行
使用 XCode(11.0及以上的版本)打开源码目录下的 TRTC-API-Example-OC.xcodeproj
> 上述流程并没有解答您的疑问,你可以[点击此处](https://wj.qq.com/s2/8393513/f442/)反馈,我们的**工程师妹子**会尽快处理!
[中文](README-zh_CN.md) | English

## Background
This open-source demo shows how to use some APIs of the [TRTC SDK](https://www.tencentcloud.com/document/product/647/34615) 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):

- Basic Features
- [Audio Call](./Basic/AudioCall)
- [Video Call](./Basic/VideoCall)
- [Interactive Live Video Streaming](./Basic/Live)
- [Interactive Live Audio Streaming](./Basic/VoiceChatRoom)
- [Screen Sharing Live Streaming](./Basic/ScreenShare)
- Advanced Features
- [String-type Room IDs](./Advanced/StringRoomId)
- [Video Quality Setting](./Advanced/SetVideoQuality)
- [Audio Quality Setting](./Advanced/SetAudioQuality)
- [Rendering Control](./Advanced/SetRenderParams)
- [Network Speed Testing](./Advanced/SpeedTest)
- [CDN Publishing](./Advanced/PushCDN)
- [Custom Video Capturing & Rendering](./Advanced/CustomCamera)
- [Audio Effect Setting](./Advanced/SetAudioEffect)
- [Background Music Setting](./Advanced/SetBackgroundMusic)
- [Local Video Sharing](./Advanced/LocalVideoShare)
- [Local Video Recording](./Advanced/LocalRecord)
- [Multiple Room Entry](./Advanced/JoinMultipleRoom)
- [SEI Message Receiving/Sending](./Advanced/SEIMessage)
- [Room Switching](./Advanced/SwitchRoom)
- [Cross-Room Competition](./Advanced/RoomPk)
- [Third-Party Beauty Filters](./Advanced/ThirdBeauty)

## 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](https://intl.cloud.tencent.com/document/product/378/17985) and completed [identity verification](https://intl.cloud.tencent.com/document/product/378/3629).


### Obtaining `SDKAPPID` and `SDKSECRETKEY`
1. Log in to the TRTC console and select **Application Management** > **[Create application](https://console.tencentcloud.com/trtc/app/create)**.
2. Enter an application name such as `TestTRTC`, and click **Next**.

![ #900px](https://qcloudimg.tencent-cloud.cn/raw/51c73a617e69a76ed26e6f74b0071ec9.png)
3. Click **Next** to view your `SDKAppID` and key.


### Configuring demo project files
1. Open the [GenerateTestUserSig.h](debug/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](https://qcloudimg.tencent-cloud.cn/raw/79a57d5e09bb050d8798492732cfd33b/TRTC-sdkAppId-iOS.png)

3. Return to the TRTC console and click **Next**.
4. 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](https://www.tencentcloud.com/document/product/647/35166).

## 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](https://www.tencentcloud.com/document/product/647/47858).


### 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](https://www.tencentcloud.com/document/product/647/36057).

- To learn about how the TRTC SDK can be used in different scenarios, see [Sample Code](https://www.tencentcloud.com/document/product/647/42963).

- For complete API documentation, see [SDK API Documentation](https://www.tencentcloud.com/document/product/647/35119).

- 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](https://t.me/+EPk6TMZEZMM5OGY1)
Or scan the QR code
<img src="https://qcloudimg.tencent-cloud.cn/raw/79cbfd13877704ff6e17f30de09002dd.jpg" width="300px">
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
D6D63B7025D86CFC1006B19E /* Pods_TRTC_API_Example_OC.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C9B2CC51BDD884255109D5F7 /* Pods_TRTC_API_Example_OC.framework */; };
EB147B20282E477900C0E2DC /* ThirdBeautyTencentEffectViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = EB147B1F282E477900C0E2DC /* ThirdBeautyTencentEffectViewController.m */; };
EB147B22282E477E00C0E2DC /* ThirdBeautyTencentEffectViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = EB147B21282E477E00C0E2DC /* ThirdBeautyTencentEffectViewController.xib */; };
ED14F8002B957E7C00E52959 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED14F7FF2B957E7C00E52959 /* CoreMotion.framework */; };
ED14F7F42B91D5DA00E52959 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED14F7F32B91D5DA00E52959 /* CoreMotion.framework */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -349,7 +349,7 @@
EB147B1F282E477900C0E2DC /* ThirdBeautyTencentEffectViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ThirdBeautyTencentEffectViewController.m; sourceTree = "<group>"; };
EB147B21282E477E00C0E2DC /* ThirdBeautyTencentEffectViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ThirdBeautyTencentEffectViewController.xib; sourceTree = "<group>"; };
EBAF1EF2283243C600BE7998 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
ED14F7FF2B957E7C00E52959 /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = System/Library/Frameworks/CoreMotion.framework; sourceTree = SDKROOT; };
ED14F7F32B91D5DA00E52959 /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = System/Library/Frameworks/CoreMotion.framework; sourceTree = SDKROOT; };
FC1FE5DC9D70E1703C9DD80A /* Pods-TXReplayKit_Screen.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TXReplayKit_Screen.debug.xcconfig"; path = "Target Support Files/Pods-TXReplayKit_Screen/Pods-TXReplayKit_Screen.debug.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand All @@ -358,7 +358,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
ED14F8002B957E7C00E52959 /* CoreMotion.framework in Frameworks */,
ED14F7F42B91D5DA00E52959 /* CoreMotion.framework in Frameworks */,
7DE039A8288AACC6009C3F1F /* Accelerate.framework in Frameworks */,
7DE0399A288AABB0009C3F1F /* SystemConfiguration.framework in Frameworks */,
7DE0399F288AAC32009C3F1F /* libc++.tbd in Frameworks */,
Expand Down Expand Up @@ -877,7 +877,7 @@
88ED6FE02624364700C75B9D /* Frameworks */ = {
isa = PBXGroup;
children = (
ED14F7FF2B957E7C00E52959 /* CoreMotion.framework */,
ED14F7F32B91D5DA00E52959 /* CoreMotion.framework */,
88BC38A5284471F300814931 /* GLKit.framework */,
EBAF1EF2283243C600BE7998 /* MobileCoreServices.framework */,
880DC44928042E7200278CAC /* SystemConfiguration.framework */,
Expand Down
Loading