Multiple players and volume change

This forum is about all development around libVLC.
Claupacius
Blank Cone
Blank Cone
Posts: 12
Joined: 01 Dec 2011 18:08

Multiple players and volume change

Postby Claupacius » 07 Sep 2013 14:12

Hello,
My application creates a number of libvlc_media_player_t objects.
But when I change volume level on particular player, the volume changes on all players.
This issue exists when players use the same audio output device. If players use different audio devices it works as expected.

I also tried to instantiate player objects from the different instances of libvlc_instance_t, but it was the same effect.

Is this a feature of the a new version of libVLC ? I'm using version 2.2.0.0.
How can I overcome such limitation ? I need to lower volume of media while playing audio message.
Thanks in advance

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Multiple players and volume change

Postby Jean-Baptiste Kempf » 09 Sep 2013 23:47

Unfortunately most volumes are now linked to hardware.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Claupacius
Blank Cone
Blank Cone
Posts: 12
Joined: 01 Dec 2011 18:08

Re: Multiple players and volume change

Postby Claupacius » 11 Sep 2013 06:11

Hi Jean-Baptiste, thank you for the reply.
What do you think can be a workaround for such case ? Two processes and IPC ?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Multiple players and volume change

Postby Jean-Baptiste Kempf » 12 Sep 2013 13:21

Maybe yes or several libvlc instances.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Multiple players and volume change

Postby Rémi Denis-Courmont » 13 Sep 2013 18:27

when I change volume level on particular player, the volume changes on all players. (...) Is this a feature of the a new version of libVLC ? I'm using version 2.2.0.0.
No, that would be a bug, but it could also be a "feature" of your operating system.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 10 guests