Unity-Technologies / com.unity.webrtc

WebRTC package for Unity
Other
749 stars 186 forks source link

[BUG]: Unity crashes on Windows when permission to the microphone is denied #628

Open Pacman18 opened 2 years ago

Pacman18 commented 2 years ago

Package version

2.4.0-exp.5

Environment

* OS:Windows10
* Unity version:2020.3.1f

Steps To Reproduce

  1. project down load from git
  2. Open UnityEditor
  3. Select Scene : Audio ( include SampleScene )
  4. off mic permission Microphone
  5. Play Editor or After Bulid App, Start Play MicCheck

Current Behavior

this case occur on Windows Platform.

Permission settings can only be set once initially Start App, and if you decline at that time, they will not appear again

Expected Behavior

if microphone denied then showwing permission pop or not crashes.

Anything else?

sorry my English explain so bad.

karasusan commented 2 years ago

@Pacman18 Thanks for sharing the issue!

Pacman18 commented 2 years ago

etc) this is issue same on mixedrealitywebrtc

https://github.com/microsoft/MixedReality-WebRTC/issues/124

karasusan commented 2 years ago

@Pacman18 nice. looks this fix we should also apply to our project. https://github.com/microsoft/MixedReality-WebRTC/pull/507

karasusan commented 2 years ago

memo: WRS-232

EricUUU commented 2 years ago

WebRTC. Initialize(WebRTCSettings.LimitTextureSize,true); During initialization, if enableinatelog is true, the program will get stuck, including sample. @karasusan

karasusan commented 2 years ago

@EricUUU Is your issue related this ticket? If no, I would be glad if you make new ticket for your issue.