gpt4 book ai didi

video - "video recording stopped the maximum length for this video has been reached"Xcode iPhone

转载 作者:行者123 更新时间:2023-12-03 17:38:02 30 4
gpt4 key购买 nike

我正在使用 ImagePickerController 处理 iPhone 视频捕获。我已经设置了图像选择器 Controller 的属性。我用它来将视频的最大长度设置为 60 秒。

imagePicker.videoMaximumDuration=60;

我收到默认警报:

"video recording stopped the maximum length for this video has been reached"



当时间达到 60 秒时,我不想看到此警报,我怎样才能让它不出现?

最佳答案

正如苹果所说:
“此属性的默认值为 10 分钟(600 秒)”
所以使用:

    let picker = UIImagePickerController()
picker.sourceType = .camera
picker.mediaTypes = [kUTTypeMovie as String]
picker.videoQuality = .typeMedium // .typeHigh
picker.videoMaximumDuration = 20 * 60 // is in secs., here 20 minutes


关于video - "video recording stopped the maximum length for this video has been reached"Xcode iPhone,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12000648/

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