2***@qq.com
2***@qq.com
  • 发布:2025-12-23 14:31
  • 更新:2025-12-23 14:31
  • 阅读:23

【报Bug】cmr.startVideoCapture在ios18不触发回调,在ios其它系统版本一切回调正常

分类:HTML5+

产品分类: HTML5+

HBuilderX版本号: 4.13

手机系统: iOS

手机系统版本号: iOS 18

手机厂商: 苹果

手机机型: iphone16 ,iphone16 Pro Max

打包方式: 离线

示例代码:
function getVideo(options) {  
    const videoStartTime = getTime(); // 视频录制开始时间  
    const cmr = plus.camera.getCamera(); // 获取摄像头对象  
    const res = 'high'; // 摄像头分辨率  
    const fmt = options.format; // 视频格式  
    let cameraOptions = {}; // // 相机参数  
    if (uni.getSystemInfoSync().platform === 'android') {  
        cameraOptions = {   
            format: fmt, // 视频格式  
            videoMaximumDuration: options.time || 10 // 视频长度 单位s  
        };  
    } else {  
        cameraOptions = {   
            resolution: res, // 摄像头分辨率  
            format: fmt, // 视频格式  
            filename:'_doc/download/ftmsNewVideo/', // ios指定文件夹,否则不能删除原文件  
            videoMaximumDuration: options.time || 10 // 视频长度 单位s  
        };  
    }  
    cmr.startVideoCapture(  
        function(path) { // 调用摄像头进行摄像操作成功回调  
            console.log(path);  
        },  
        function(error) { // 调用摄像头进行摄像操作失败回调  
            typeof(options.fail) === 'function' && options.fail(error);  
        },   
        cameraOptions  
    );  
}  

操作步骤:

【报Bug】cmr.startVideoCapture在ios18不触发回调,在ios其它系统版本一切回调正常

预期结果:

在ios18拍摄视频正常返回视频url,执行回调函数

实际结果:

【报Bug】cmr.startVideoCapture在ios18不触发回调,在ios其它系统版本一切回调正常

bug描述:

【报Bug】cmr.startVideoCapture在ios18不触发回调,在ios其它系统版本一切回调正常

2025-12-23 14:31 负责人:无 分享
已邀请:

要回复问题请先登录注册