gpt4 book ai didi

ios - 设置输出视频设置时出错

转载 作者:行者123 更新时间:2023-12-01 19:19:34 25 4
gpt4 key购买 nike

output.videoSettings = [NSDictionary dictionaryWithObject:
[NSNumber numberWithInt:kCVPixelFormatType_32BGRA]
forKey:(id)kCVPixelBufferPixelFormatTypeKey];

我在此特定行上收到此错误
No known class method for selector "dictionaryWithObject:forKey:

任何原因导致此错误?

最佳答案

尝试这个:

videoOutput.videoSettings = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithUnsignedInt:kCVPixelFormatType_32BGRA], (id)kCVPixelBufferPixelFormatTypeKey,
nil];

关于ios - 设置输出视频设置时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10981040/

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