Comments (4)
emmm... 有些浏览器是这样,没次请求权限都弹,不过大部分浏览器还好,只要确认过一次就不会弹了。
可以尽量open后一直保持着录音状态,不要close,这样多次录音就不会弹了;不过可能系统会提醒网页在后台偷偷录音一样;并且需要不同浏览器多多的测试兼容性,因为有些浏览器不close下次继续录音会有问题的(目前仅发现Safari有问题)。
from recorder.
emmm... 有些浏览器是这样,没次请求权限都弹,不过大部分浏览器还好,只要确认过一次就不会弹了。
可以尽量open后一直保持着录音状态,不要close,这样多次录音就不会弹了;不过可能系统会提醒网页在后台偷偷录音一样;并且需要不同浏览器多多的测试兼容性,因为有些浏览器不close下次继续录音会有问题的(目前仅发现Safari有问题)。
每次打开能不能只做一次请求权限, 即只执行一次getUserMedia , 一直保持对麦克风的使用状态, 但是录音开始和录音结束用start和close控制.
from recorder.
Recorder H5 提供了open和close,权限控制起来比较方便,应该不存在什么问题。
RecordApp只有1个权限控制的方法,检测完权限就关掉了,是对老弹权限请求的浏览器不友好,刚才已经对RecordApp 优化了一下,请求完权限后下一次开始录音不会再请求权限。稍微对那些不友好的浏览器友好了点
from recorder.
Recorder H5 提供了open和close,权限控制起来比较方便,应该不存在什么问题。
RecordApp只有1个权限控制的方法,检测完权限就关掉了,是对老弹权限请求的浏览器不友好,刚才已经对RecordApp 优化了一下,请求完权限后下一次开始录音不会再请求权限。稍微对那些不友好的浏览器友好了点
非常感谢! 我已经看到了效果!
from recorder.
Related Issues (20)
- 正在录音时,本地使用audio标签又播放了一个音频,这个音频在播放时我也在说话,此时录音文件只会记录音频,不会有我的说话声音 HOT 1
- 你这个能实现和ChatGpt官方APP实时对话的效果吗 HOT 1
- recwave-Histogram3可视化问题 HOT 3
- 在chrome extension的content js环境中引入1.3.23120800版本的recorder-core不能正常工作,1.2.23070100可以正常工作。 HOT 2
- 以base64编码的PCM音频流转成wav播放后都是噪音 HOT 9
- 如何获取到类似 const stream = await navigator.mediaDevices.getUserMedia({ audio: true });的媒体流 HOT 2
- 大佬请教一个问题 HOT 1
- 覆盖导入Recorder HOT 1
- 继续录音的时候onProces不会触发
- Failed to construct 'AudioContext'
- 调用Recorder.GetContext(true)得到的不是running状态的AudioContext, 而是suspended HOT 1
- Cannot read properties of undefined (reading 'i18n') HOT 2
- getUserMedia的audio值能设置成扬声器吗? HOT 3
- 默认播放一个背景音乐,当打开麦克风后背景音乐会转为听筒或者声音变得特别大在IOS中
- 请问每次录音第一次都不成功,第二次才成功录上怎么解决 HOT 2
- Open方法回调需要经过200ms多延时? HOT 3
- 发现同时多次调用open
- 如何自定义apiRequest HOT 1
- ios每次都要重新授权 有遇到吗 HOT 2
- Cannot read properties of undefined (reading 'input') 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.