我正在创建一个可在两个外部屏幕上播放的视频播放器。对于两个屏幕,左侧和右侧屏幕都有一个按钮。对于每个屏幕,我想分别向左和向右平移音频。我已将此添加到我的btnRightPlay中,但音频仍然无法在右侧通道上播放。有没有人对此提出建议?我需要添加缓冲区吗?
Pan.Right.Equals(10000);
视频播放器的播放器代码
public PlayerAvi()
{
InitializeComponent();
player.stretchToFit = true;
player.uiMode = "none";
}
public override bool LoadVideo(string filePath)
{
_path = filePath;
player.URL = _path;
player.Ctlcontrols.stop();
player.settings.balance = -100;
waveOutSetVolume(0, 0x0000FFFF);
return true;
}
public override bool PlayVideo()
{
player.Ctlcontrols.play();
return true;
}
public override bool StopVideo()
{
player.Ctlcontrols.stop();
return true;
}
public override bool PauseVideo()
{
player.Ctlcontrols.pause();
return true;
}
public override bool ResumeVideo()
{
player.Ctlcontrols.play();
return true;
}
public override bool ClearVideo()
{
StopVideo();
_path = null;
return true;
}
}