OpenVidu/openvidu

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

ameotoko opened this issue · 0 comments

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

  • Run any deployment and backend instance (should not be relevant for this issue)
  • in openvidu/openvidu-components-angular, run npm run lib:build, then npm run start

Client device info (if applicable)

  • Chrome 114.0.5735.90 (Official Build) (x86_64) on macOS Ventura 13.3.1 (a).