Comments (3)
可能我没有描述清楚问题。
场景是这样的,点击顺序 开始 --> 克隆 --> 继续
问题是,对克隆后的a 进行继续录音 无效
HTML
<button class="start">开始</button>
<button class="clone">克隆</button>
<button class="resume">继续</button>
JS
let recorder = new Recorder();
let a = null;
document.querySelector(".start").addEventListener("click", () => {
recorder.start();
setTimeout(() => {
recorder.pause();
}, 2000);
});
document.querySelector(".clone").addEventListener("click", () => {
a = _.cloneDeep(recorder);
console.log(a);
});
document.querySelector(".resume").addEventListener("click", () => {
a.resume();
setInterval(() => {
console.log(a);
}, 1000);
});
from recorder.
二进制数据,不能这么拷贝的呀,转成dateview去处理
from recorder.
哈哈 我小白 过段时间试试
from recorder.
Related Issues (20)
- 能否捕捉扬声器音频? HOT 1
- 录制出来大部分情况下有滋滋的电流声
- 1
- dataView转MP3
- 请问一下,双声道支持了吗?为什么我得到的PCM 文件左右声道是一样声音?
- Player 类的播放 是否支持回调,和如何获取 实时播放时长
- 调用getPermission()获取麦克风权限后,recorder.start()还是每次都要点击允许录音
- 录音后保存的.wav .mp3文件无法播放问题
- iphone 14pro, 录不了音频 HOT 2
- stop()不生效
- RangeError: Offset is outside the bounds of the DataView
- 耳麦播放录音声音巨小
- 录音30分钟文件30M左右直接转二进制不能上传,下载下来却可以上传是为什么
- iPhoneXR的微信最新版本的浏览器中,无法弹出获取权限的窗口,会不会是微信的bug?
- 请问在最新版本1.0.7中getPermission是被移除了吗?调用时 undefined
- 录音是否支持转amr 或者作者大大知道转amr的方法
- 不支持切换音频设备录音,可以考虑把stream作为参数传入Recorder实现切换设备录音
- 请问,你的这个是否支持实时socket语音上传? HOT 1
- 文档打不开了吗 HOT 1
- 如何实现去掉很小的背景噪声?比如音量小于一定阈值的?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recorder.