Page 1 of 1

How to set diffrent libvlc_media_player_t's volume

Posted: 11 Mar 2009 03:27
by heaven
If i create more than one libvlc_media_player_t under the same lib_vlc_instance, is there any way to control diffrent media_player's volume independently?

I found the function

Code: Select all

VLC_PUBLIC_API void libvlc_audio_set_volume( libvlc_instance_t *, int, libvlc_exception_t *);
in libvlc.h, which could only set the volume of all the players under the same instance as a whole...
It seems that mediacontrol APIs can solve this problem. But there are just functions to create mediacontrol instance from libvlc_instance, such as

Code: Select all

mediacontrol_new_from_instance( libvlc_instance_t* p_instance,mediacontrol_Exception *exception );
But the mediacontrol could also be binded to just libvlc_instance, not libvlc_media_player_t instance...


Need your help. Thank you

Re: How to set diffrent libvlc_media_player_t's volume

Posted: 11 Mar 2009 09:25
by Beardless2
im not certain its fixed - but have you tried v1.0.0 GIT as i think work has been done in this area.

Re: How to set diffrent libvlc_media_player_t's volume

Posted: 11 Mar 2009 14:01
by erwan10
I'm afraid the audio part of vlc is not yet designed to support multiple concurrent playbacks and monitor them independently. (even the latest vlc from git)