Having two media players working at the same time
Posted: 28 Mar 2013 19:36
I'd like to know the proper way of having two media players working in parallel.
Do I need to create two vlc instance objects for them? Or they can share a single one?
I my program I need to have two players working at the same time. In the begining only one player is playing, but user can open another player at any time. So I want to mute the first one, then show the second one and then, when it's closed, restore the volume of the first player.
My problem is that when I mute the first player, the second one starts to play with no sound too. Though I can tune the volume using a slider, initially the second player is mute.
I use a single vlc instance object for my players. Is this approach correct?
Do I need to create two vlc instance objects for them? Or they can share a single one?
I my program I need to have two players working at the same time. In the begining only one player is playing, but user can open another player at any time. So I want to mute the first one, then show the second one and then, when it's closed, restore the volume of the first player.
My problem is that when I mute the first player, the second one starts to play with no sound too. Though I can tune the volume using a slider, initially the second player is mute.
I use a single vlc instance object for my players. Is this approach correct?