[video-v2.4.49-beta.1]预发版
Pre-release
Pre-release
·
1 commit
to video-v2.4.x
since this release
集成方式:
pod 'TIoTLinkVideo', '2.4.49-beta.1'
pod 'TIoTLinkKit_XP2P', '2.4.53'
pod 'TIoTLinkKit_GVoiceSE', '1.0.9'
pod 'TIoTLinkKit_IJKPlayer', '2.0.15'
AVAudioSession *avsession = [AVAudioSession sharedInstance];
[avsession setCategory:AVAudioSessionCategoryPlayAndRecord withOptions:AVAudioSessionCategoryOptionDefaultToSpeaker error:nil];
[avsession setPreferredSampleRate:16000 error:nil];
[avsession setPreferredInputNumberOfChannels:audio_config.channels error:nil];
NSTimeInterval duration = 0.015;
[avsession setPreferredIOBufferDuration:duration error:nil];
[avsession setActive:YES error:nil];
更新内容:
- 修复oc/c混编内存问题
2.更新接口 pro_id/dev_name 拼接
接口指引:
TIoTP2PAPPConfig *config = [TIoTP2PAPPConfig new];
config.appkey = xxx; //为explorer平台注册的应用信息(https://console.cloud.tencent.com/iotexplorer/v2/instance/app/detai) explorer控制台- 应用开发 - 选对应的应用下的 appkey/appsecret
config.appsecret = xxx; //为explorer平台注册的应用信息(https://console.cloud.tencent.com/iotexplorer/v2/instance/app/detai) explorer控制台- 应用开发 - 选对应的应用下的 appkey/appsecret
config.xp2pinfo = xp2pInfo; //请求到设备的p2p_info
config.autoConfigFromDevice = YES; //配置是否跟随设备
[[TIoTCoreXP2PBridge sharedInstance] startAppWith:myProductId dev_name:myDeviceName appconfig:config];
·
·
·
Ready 之后
[[TIoTCoreXP2PBridge sharedInstance] getCommandRequestWithAsync: myProductId/myDeviceName cmd:@"action=inner_define&channel=0&cmd=get_device_st" timeout:5*1000*1000 completion:^(NSString * _Nonnull jsonList) {
}];