I have 4 VlcControls which I used WindowsFormsHost to host them in my WPF page.The VlcControls are to playing video capture cards input content. When I adjust the volume of one in them like below, all 4 Controls' volume get louder/smaller together.Does any of you guys know how to adjust only one VlcControl's volume instead of 4 together?
// Set options
string[] options = new string[]
{
$":dshow-vdev={videoDeviceName}",
$":dshow-adev={audioDeviceName}",
":dshow-size=1920x1080",
":dshow-aspect-ratio=16\\:9",
":dshow-fps=60",
":live-caching=0",
":width=960",
":height=540",
":transform-type=180",
};
// Start to Play
vlcControls[1].Play("dshow://", options);
// Adjust the volume
private void ChangeVolumn(object para2)
{
var volume = (double)para2;
var player = vlcControls[1];
player.Audio.Volume = (int)volume;
}
I tried:
player.MediaPlayer.Audio.Volume = (int)volume;
but I found they were the same.