收藏
回答

camera摄像头旋转就会录制失败,如何解决这个问题?

<camera :device-position="devicePosition" flash="off"

mode="normal" @stop="cameraErrorStop"

@error="cameraError"

style="width:100%; height:100vh; position: absolute; top: 0; z-index: 10;">

</camera>


在录制过程中发现摄像头旋转后,就会录制失败,分别报如下错误

{"type":"stop","timeStamp":71227,"target":{"id":"","offsetLeft":0,"offsetTop":0,"dataset":{"eventOpts":[["stop",[["cameraErrorStop",["$event"]]]],["error",[["cameraError",["$event"]]]]]}},"currentTarget":{"id":"","offsetLeft":0,"offsetTop":0,"dataset":{"eventOpts":[["stop",[["cameraErrorStop",["$event"]]]],["error",[["cameraError",["$event"]]]]]}},"mark":{},"detail":{},"mut":false,"_userTap":false,"__evName":"stop","mp":{"type":"stop","timeStamp":71227,"target":{"id":"","offsetLeft":0,"offsetTop":0,"dataset":{"eventOpts":[["stop",[["cameraErrorStop",["$event"]]]],["error",[["cameraError",["$event"]]]]]}},"currentTarget":{"id":"","offsetLeft":0,"offsetTop":0,"dataset":{"eventOpts":[["stop",[["cameraErrorStop",["$event"]]]],["error",[["cameraError",["$event"]]]]]}},"mark":{},"detail":{},"mut":false,"_userTap":false,"__evName":"stop"}}


{"errMsg":"operateCamera:fail:is not recording"}

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容