我在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)
但是,我不清楚我提到的另一个线程的以下内容:
view
和previewStream
允许使用哪些类型? view
是UIViewController或UIViewController的子类? previewStream
是相似还是其他类型?