refactor(record-manager): 重构录音管理模块,引入策略模式优化录音和保存逻辑
重构录音管理模块,主要变更包括: 1. 引入策略模式,通过 StrategyFactory 动态选择录音和保存策略 2. 新增 NativeRecorder 和 NativeSave 策略实现原生录音功能 3. 提取 PathUtils 统一处理文件路径相关操作 4. 优化 RecordService 作为统一入口管理录音生命周期 5. 改进错误处理和日志记录 相关组件和混入代码同步更新以适应新的录音管理架构
Showing
15 changed files
with
646 additions
and
241 deletions
utils/recordManager/NativeRecorder.js
0 → 100644
utils/recordManager/NativeSave.js
0 → 100644
utils/recordManager/PathUtils.js
0 → 100644
utils/recordManager/PollingSave.js
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
utils/recordManager/strategies.js
0 → 100644
-
Please register or sign in to post a comment