Title
Mute Button (M Key) Displays Incorrect State Compared to Actual Audio Behavior
Description
When using the keyboard shortcut "M" in the course lecture player, the visual mute/unmute indicator does not match the actual audio state. The icon updates, but the sound behavior is reversed.
Steps to Reproduce
- Open any lecture in the course player
- Press the "M" key to mute
- Observe the mute icon and listen to audio
- Press "M" again to unmute
- Observe the icon and audio behavior again
Expected Behavior
- Pressing "M" should mute the audio and show a muted icon
- Pressing "M" again should unmute the audio and show an unmuted icon
- The icon and actual audio state should always match
Actual Behavior
- First press:
- Icon shows muted, but audio continues playing
- Second press:
- Icon shows unmuted, but audio becomes muted
Impact
- Creates confusion for users
- Reduces usability of keyboard shortcuts
- Breaks expected interaction pattern for media players
Environment
- Browser: [Chrome]
- Version: [146.0.7680.155 (Official Build) (64-bit)]