How to set diffrent libvlc_media_player_t's volume

This forum is about all development around libVLC.
heaven
New Cone
New Cone
Posts: 5
Joined: 02 Mar 2009 10:29

How to set diffrent libvlc_media_player_t's volume

Postby heaven » 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

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

Beardless2
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 02 Feb 2007 09:53

Re: How to set diffrent libvlc_media_player_t's volume

Postby Beardless2 » 11 Mar 2009 09:25

im not certain its fixed - but have you tried v1.0.0 GIT as i think work has been done in this area.

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: How to set diffrent libvlc_media_player_t's volume

Postby erwan10 » 11 Mar 2009 14:01

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)


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 35 guests