OpenVidu / openvidu

OpenVidu Platform main repository
https://openvidu.io
Apache License 2.0
1.86k stars 464 forks source link

`videoMuted/audioMuted` are ignored when localStorage values are present #805

Closed ameotoko closed 1 year ago

ameotoko commented 1 year ago

Describe the bug

Config values videoMuted and audioMuted have no effect when local storage values set to true

Expected behavior

If you set [videoMuted]="true" [audioMuted]="true" on <ov-videoconference> component, video and audio devices are not published and cannot be switched on by user. If you set [videoMuted]="false" [audioMuted]="false", the devices should work again and be available for user to switch.

Wrong current behavior

If you set [videoMuted]="true" [audioMuted]="true" once, all the consequent changes will have no effect - the devices are always disabled, no matter what you set in component configuration. The proper behavior is restored only when you clear local storage in the browser dev tools.

OpenVidu deployment info

Client device info (if applicable)