<camera class="camera-box" device-position="front" flash="off" resolution="medium" frame-size="large" bindinitdone="cameraInitDone" binderror="error" ></camera>
const ctx = wx.createCameraContext()
ctx.startRecord({
timeout: 18,
success: (res) => {
},timeoutCallback: (result) => {
//超过录制时长上限时会结束录像并触发此回调,录像异常退出时也会触发此回调
ctx.stopRecord({
success: (res) => {}
})
});
估计就是这个的,但是不清楚具体多少