snowymo / immersive-presentation

MIT License
4 stars 1 forks source link

[Audio] Ian reported that Audio is not working #31

Closed snowymo closed 3 years ago

snowymo commented 3 years ago

Describe the bug @IanTyf failed to hear self when launching two webpages.

To Reproduce Feel free to describe how you did it @IanTyf .

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior We should be able to hear each other from the correct location.

Additional context NYU VPN is used.

snowymo commented 3 years ago

Please test and let me know. It is in branch fixAudio

The issue is probably related to new Chrome policy for audio. https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

IanTyf commented 3 years ago

I couldn't hear myself when I had two or more webpages opened, and got the error message "Cannot read property 'audioInputStream' of undefined" in console To reproduce:

  1. Open two webpages (or more) of the metaroom at localhost:8000/sig21.html in Chrome
  2. In the first webpage that was opened, click Speak button
  3. Then go to the second webpage. Check console to see the error message

Note: when I had three metaroom webpages opened, clicking on the Speak button in the second webpage would result in the error message in the third page's console, but not the first page. And when I clicked on the Speak button in the third webpage, no error message was shown in any page's console. I could not hear myself during any of these tests.

snowymo commented 3 years ago

Please clean the cache or try ctrl+shift+R to refresh the page. And remember to checkout branch fixAudio and try.

IanTyf commented 3 years ago

I did ctrl+shif+R and I still couldn't hear myself. However, in the fixAudio branch I can hear myself after pressing speak. The only issue with fixAudio is that the mute button is not working for me. I can still hear myself talking after pressing mute, and seemingly even louder.

snowymo commented 3 years ago

Absolutely I should try in fixAudio branch because I have not merged it to main. Since you have issues with it I prefer to ensure you can hear yourself correctly before mergeing back.

On Sat, Jul 10, 2021 at 1:47 PM IanTyf @.***> wrote:

I did ctrl+shif+R and I still couldn't hear myself. However, in the fixAudio branch I can hear myself after pressing speak. The only issue with fixAudio is that the mute button is not working for me. I can still hear myself talking after pressing mute, and seemingly even louder.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/futurerealitylab/immersive-presentation/issues/31#issuecomment-877573409, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNLBKOUQDE72RTXNXSOKGTTW7NG5ANCNFSM47ZMEJTA .

-- Regards, Zhenyi