Skip to content

Mute and SetVolume(0) is muting all MediaPlayers

Summary

I have two MediaPlayer instances. Sadly, I found that setting Mute or SetVulme(0) on any mutes all.

Minimal project and steps to reproduce

See https://github.com/achimmihca/VlcForUnityMuteIssue

Please also provide the functional steps to reproduce the behavior (if necessary):

  1. Open the corresponding sample scene and hit run
  2. Use the buttons to toggle only one of the MediaPlayers
  3. Note that all MediaPlayers are muted

What is the current bug behavior?

  • all MediaPlayers are muted when using Mute = true or SetVolume(0) on any MediaPlayer.

What is the expected correct behavior?

  • Mute and SetVolume should only affect the MediaPlayer where it was called on

Does it work on other plaforms? Does it work with the official VLC apps?

Does not work in Unity Editor nor in built game.

Environment

  • OS: Windows 11
  • LibVLC version and architecture: 4.0.0-dev-24970-ga03de829e1
  • LibVLCSharp version: LibVLCSharp version: 4.0.0.0
  • VLC Unity plugin version: 0.1.8
  • Scripting backend used: Mono