Code Monkey home page Code Monkey logo

Comments (4)

xiangyuecn avatar xiangyuecn commented on May 17, 2024

emmm... 有些浏览器是这样,没次请求权限都弹,不过大部分浏览器还好,只要确认过一次就不会弹了。

可以尽量open后一直保持着录音状态,不要close,这样多次录音就不会弹了;不过可能系统会提醒网页在后台偷偷录音一样;并且需要不同浏览器多多的测试兼容性,因为有些浏览器不close下次继续录音会有问题的(目前仅发现Safari有问题)。

from recorder.

Masquerades2015 avatar Masquerades2015 commented on May 17, 2024

emmm... 有些浏览器是这样,没次请求权限都弹,不过大部分浏览器还好,只要确认过一次就不会弹了。

可以尽量open后一直保持着录音状态,不要close,这样多次录音就不会弹了;不过可能系统会提醒网页在后台偷偷录音一样;并且需要不同浏览器多多的测试兼容性,因为有些浏览器不close下次继续录音会有问题的(目前仅发现Safari有问题)。

每次打开能不能只做一次请求权限, 即只执行一次getUserMedia , 一直保持对麦克风的使用状态, 但是录音开始和录音结束用start和close控制.

from recorder.

xiangyuecn avatar xiangyuecn commented on May 17, 2024

Recorder H5 提供了open和close,权限控制起来比较方便,应该不存在什么问题。

RecordApp只有1个权限控制的方法,检测完权限就关掉了,是对老弹权限请求的浏览器不友好,刚才已经对RecordApp 优化了一下,请求完权限后下一次开始录音不会再请求权限。稍微对那些不友好的浏览器友好了点

from recorder.

Masquerades2015 avatar Masquerades2015 commented on May 17, 2024

Recorder H5 提供了open和close,权限控制起来比较方便,应该不存在什么问题。

RecordApp只有1个权限控制的方法,检测完权限就关掉了,是对老弹权限请求的浏览器不友好,刚才已经对RecordApp 优化了一下,请求完权限后下一次开始录音不会再请求权限。稍微对那些不友好的浏览器友好了点

非常感谢! 我已经看到了效果!

from recorder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.