I've always used Firefox and some time ago would experience this problem occasionally. The easiest way to keep it from happening is to right click in chat, then left click on settings, then left click on the icon of the monitor with the eye in it. Click on allow and remember and the site will automatically allow your mic and cam when you enter chat instead of having to click allow every time you enter.
If you ever clear your cookies, you will have to reset this