Skip to content

Commit f84a581

Browse files
committed
添加接口说明
Change-Id: I572a2e3261a538692b3457403228f646ca5c5c62
1 parent 5c39d75 commit f84a581

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Source/SDK/LinkVideo/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@ pod 'IoTVideoAdvanced'
1515
2、运行SDKDemo
1616

1717
* 打开Xcode,选择 Target --> LinkSDKDemo
18-
* 需要在 [AppDelegate.m](../../LinkSDKDemo/Supporting%20Files/AppDelegate.m#L38~L40) 中,配置 SecretId、SecretKey、ProductId;
18+
* 运行demo需要在 [AppDelegate.m](../../LinkSDKDemo/Supporting%20Files/AppDelegate.m#L38~L44) 中,配置 SecretId、SecretKey、ProductId;
1919
* <u>***SecretId、SecretKey、ProductId 用于访问 物联网智能视频服务,此处的使用方式仅为演示,请勿将 SecretId、SecretKey 保存在客户端,避免泄露***</u>
2020

2121

2222
3、2.6.x版本集成接口说明
2323

24-
* [事例代码](https://github.com/tencentyun/iot-link-ios/blob/88c756ce41f72090f5a892cd130da49cabf4a3a7/Source/LinkSDKDemo/Video/P2P/Controller/TIoTDemoPreviewDeviceVC.m#L149-L153),运行demo需要在 [AppDelegate.m](../../LinkSDKDemo/Supporting%20Files/AppDelegate.m#L38~L40) 中,配置 SecretId、SecretKey、ProductId;
25-
* 1、SDK 接入后,需先通过[云API](https://github.com/tencentyun/iot-link-ios/blob/88c756ce41f72090f5a892cd130da49cabf4a3a7/Source/LinkSDKDemo/Video/P2P/Controller/TIoTDemoPreviewDeviceVC.m#L1603-L1636)获取到TRTCParams参数后,
24+
* 1、拨打呼叫流程,需先通过[云API](https://github.com/tencentyun/iot-link-ios/blob/88c756ce41f72090f5a892cd130da49cabf4a3a7/Source/LinkSDKDemo/Video/P2P/Controller/TIoTDemoPreviewDeviceVC.m#L1603-L1636)获取到TRTCParams参数后,`startAppWith`接口开始呼叫对应设备[事例代码](https://github.com/tencentyun/iot-link-ios/blob/88c756ce41f72090f5a892cd130da49cabf4a3a7/Source/LinkSDKDemo/Video/P2P/Controller/TIoTDemoPreviewDeviceVC.m#L149-L153)
2625

2726
```
2827
//开始拨打设备,请求云API后,start SDK后,设备即可收到呼叫信息
@@ -42,8 +41,8 @@ pod 'IoTVideoAdvanced'
4241

4342
//开始推流
4443
TIoTCoreVideoConfig *video_config = [TIoTCoreVideoConfig new];
45-
video_config.localView = weakSelf.imageView;
46-
video_config.remoteView = weakSelf.remoteView;
44+
video_config.localView = self.imageView;
45+
video_config.remoteView = self.remoteView;
4746
video_config.videoPosition = AVCaptureDevicePositionFront;
4847
4948
[[TIoTCoreXP2PBridge sharedInstance]sendVoiceToServer:weakSelf.deviceName?:@"" channel:channel audioConfig:audio_config videoConfig:video_config];
@@ -55,6 +54,8 @@ pod 'IoTVideoAdvanced'
5554
- (void)refreshLocalView:(UIView *)localView;
5655
//设置听筒还是扬声器模式,yes=扬声器,no=听筒
5756
- (void)setAudioRoute:(BOOL)isHandsFree ;
57+
//切换前后摄像头
58+
- (void)changeCameraPositon;
5859
//静音或恢复音频
5960
- (void)muteLocalAudio:(BOOL)mute;
6061
//参数cmd发送具体信令内容,每秒最多能发送30条消息。每个包最大为 1KB,超过则很有可能会被中间路由器或者服务器丢弃。每个客户端每秒最多能发送总计 8KB 数据。

0 commit comments

Comments
 (0)