How to set diffrent libvlc_media_player_t's volume
Posted: 11 Mar 2009 03:27
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
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
But the mediacontrol could also be binded to just libvlc_instance, not libvlc_media_player_t instance...
Need your help. Thank you
I found the function
Code: Select all
VLC_PUBLIC_API void libvlc_audio_set_volume( libvlc_instance_t *, int, libvlc_exception_t *);
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 );
Need your help. Thank you