在使用iOS和Linphone进行视频通话的显示视频窗口时出现问题

时间:2019-08-19 23:36:48

标签: ios swift video video-streaming linphone

我在Enable video calling with Linphone iOS SDK中提到了类似的代码。

视频流正在基于调试日志运行,但是无法启用弹出窗口以在屏幕上显示视频。

我尝试完全显示在Enable video calling with Linphone iOS SDK中。

private func bridge<T: AnyObject>(obj : T) -> UnsafeRawPointer {
    let pointer = Unmanaged.passUnretained(obj).toOpaque()
    return UnsafeRawPointer(pointer)
}

linphone_core_set_native_video_window_id(theLinphone.lc, nil)
linphone_core_set_native_preview_window_id(theLinphone.lc, nil)

我想要类似以下内容:

private func bridge<T: AnyObject>(obj : T) -> UnsafeRawPointer {
    let pointer = Unmanaged.passUnretained(obj).toOpaque()
    return UnsafeRawPointer(pointer)
}

let viewPointer = UnsafeMutableRawPointer(mutating: bridge(obj: view))
let previewPointer = UnsafeMutableRawPointer(mutating: bridge(obj: previewStream))
linphone_core_set_native_video_window_id(theLinphone.lc, viewPointer)
linphone_core_set_native_preview_window_id(theLinphone.lc, previewPointer)

但是,我不清楚我提到的另一个线程的以下内容:

  • viewpreviewStream允许使用哪些类型?
  • 是否允许view是UIViewController或UIViewController的子类?
  • previewStream是相似还是其他类型?

0 个答案:

没有答案