gpt4 book ai didi

iphone - 如何静音 AVCaptureDevice?

转载 作者:行者123 更新时间:2023-12-03 17:23:39 35 4
gpt4 key购买 nike

我有摄像头,即 AVCaptureDevice,我确定闪光灯已关闭,但现在我需要关闭相机噪音,有办法做到这一点吗?

NSArray* cams = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
AVCaptureDevice* device = nil;
if(isBackCamera)
{
device = [possibleCameras objectAtIndex:0];
}
else
{
device = [possibleCameras objectAtIndex:1];
}

device.flashMode = AVCaptureFlashModeOff;

最佳答案

我认为苹果不允许你这样做

关于iphone - 如何静音 AVCaptureDevice?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13333227/

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