更新记录
1.0.0(2025-12-05) 下载此版本
使用android.media.MediaRecorder实现暂停继续功能 import { initRecording, prepareRecording, startRecording, pauseRecording, resumeRecording, stopRecording, getRecordDuration, } from '@/uni_modules/cc-harmony-recorder'; // 导入暴露的方法 // 按照流程执行 initRecording -> idle prepareRecording -> prepared startRecording -> started pauseRecording -> paused resumeRecording -> started stopRecording -> stopped
平台兼容性
uni-app(4.26)
| Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
|---|---|---|---|---|---|---|---|---|
| - | - | - | - | - | - | 7.0 | - | - |
| 微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
|---|---|---|---|---|---|---|---|---|---|---|
| - | - | - | - | - | - | - | - | - | - | - |
cc-android-recorder
示例在components/cc-android-recorder/cc-android-recorder.vue
import {
initRecording,
prepareRecording,
startRecording,
pauseRecording,
resumeRecording,
stopRecording,
getRecordDuration,
} from '@/uni_modules/cc-android-recorder';
// 导入暴露的方法
// 按照流程执行
initRecording -> idle
prepareRecording -> prepared
startRecording -> started
pauseRecording -> paused
resumeRecording -> started
stopRecording -> stopped

收藏人数:
下载插件并导入HBuilderX
赞赏(0)
下载 9
赞赏 0
下载 11756786
赞赏 1818
赞赏
京公网安备:11010802035340号