0

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

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

它在 iOS 9.3.5 上完美运行。

但是在 iOS 10.3.2 中,peer 的视频流没有显示出来,像这样(https://github.com/nubomediaTI/Kurento-iOS/issues/33)。在我的情况下,它只显示灰屏。

有人知道原因吗?

4

1 回答 1

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];
}}
于 2017-10-05T06:29:39.423 回答