An error occurred while saving the commentRanjit Pannu commented
I found this issue in my pc also and problem I found in my antivirus application, in My case I have Quick Heal Total Security, in this Internet & Network go to Webcam settings, there you need to add Microsoft Team and allow it. . Close your MT from task manager and restart. In my case it is now working.
I also believe if still it is not working in your pc then you can allow media to Microsoft team in your browser settings for camera and microphone.