1
画面共有を提供したいオン/オフ iOSの機能を使用トークボックスを使用しています。iOSでトックボックスの画面共有をオン/オフに切り替える目的C
私はデバイスの画面共有に切り替えることができますが、画面を共有した後、私はデバイスCamaraに戻ることができません。
私は次のコードを試しました。
-(void)toogleScreen{
if (isSharingEnable == YES) {
isSharingEnable = NO;
NSLog(@"%@",_publisher.description);
_publisher.videoCapture = nil;
[_publisher setVideoType:OTPublisherKitVideoTypeCamera];
_publisher.audioFallbackEnabled = YES;
} else {
isSharingEnable = YES;
[_publisher setVideoType:OTPublisherKitVideoTypeScreen];
_publisher.audioFallbackEnabled = NO;
TBScreenCapture* videoCapture =
[[TBScreenCapture alloc] initWithView:self.view];
[_publisher setVideoCapture:videoCapture];
}
}
彼らはへのアクセラレータパックを持っていますそれをやる。 https://github.com/opentok/screensharing-annotation-acc-pack –