gpt4 book ai didi

ios - Quickblocks 接收视频通话崩溃

转载 作者:搜寻专家 更新时间:2023-10-31 23:07:23 25 4
gpt4 key购买 nike

我正在尝试在 swift 中集成快速 block 。一切正常,但是当我收到其他用户的调用请求时,我的应用程序崩溃了。我收到此错误

[CAMetalLayerDrawable texture] should not be called after already presenting this drawable. Get a nextDrawable instead.

我的 QBRTCClientDelegate 如下所示

func session(_ session: QBRTCBaseSession, receivedRemoteVideoTrack videoTrack: QBRTCVideoTrack, fromUser userID: NSNumber) {

if (session as! QBRTCSession).id == self.session?.id {

self.remoteView = QBRTCRemoteVideoView.init()
self.remoteView?.videoGravity = AVLayerVideoGravity.resizeAspect.rawValue
self.remoteView?.clipsToBounds = true
self.remoteView?.setVideoTrack(videoTrack)
self.remoteView?.tag = userID.intValue
self.stackView.addArrangedSubview((self.remoteView)!)


}
}

最佳答案

请记住,Metal 仅适用于 A7 或更高处理器。我可以建议您强制使用 OpenGLES 绘图而不是 Metal,现在,只需执行以下操作:

QBRTCRemoteVideoView.preferMetal = NO

关于ios - Quickblocks 接收视频通话崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49998288/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com