Kurento iOS会议室视频未在iOS 10.3上显示

时间:2017-08-18 12:43:14

标签: ios objective-c webrtc kurento ios10.3.2

我正在使用来自网址的kurento ios代码

https://github.com/nubomediaTI/Kurento-iOS

它在iOS 9.3.5上完美运行。

但在iOS 10.3.2中,未显示对等体的视频流,如此(https://github.com/nubomediaTI/Kurento-iOS/issues/33)。它只显示我的灰色屏幕。

有人知道原因吗?

1 个答案:

答案 0 :(得分:3)

以下步骤适用于在IOS 10+设备上获取流。

1.转到Xcode并打开nobomedia项目并搜索此类“NBMPeerViewCell.m”。

2.找到“setVideoView”方法并取消注释此行“[self setNeedsLayout];”

- (void)setVideoView:(UIView *)videoView {
if (!videoView) {
    [self hideCellSubview:self.videoView];
    return;
}
if (_videoView != videoView) {
    [_videoView removeFromSuperview];
    _videoView = videoView;
    [self.containerViewW insertSubview:_videoView aboveSubview:_peerLabelW];
    [self showCellSubview:_videoView];

    [self setNeedsLayout];
}}