google chrome - Can I playback audio without needing to ask for microphone permissions in browser? - Stack Overflow

I am working on a sample app available hereThe problem I am running into is when the page loads it asks

I am working on a sample app available here

The problem I am running into is when the page loads it asks for microphone permissions (see for a similar situation). This seems a little bit intrusive so I would like to get audio permissions without the microphone for now. Is there a way to toggle that?

I am sure it is in my face but I can't figure out how to just get playback permissions.

Update

I was asked for more detail so the audio is read here

const mediaSource = new MediaSource();
audio.src = URL.createObjectURL(mediaSource);
    mediaSource.addEventListener('sourceopen', async () => {

As you can see from a code perspective it is using a typical MediaSource

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742344183a4426215.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信