0

I'm creating a video player that plays on two external screens. For the two screens there is a button for the left and right screen. For each screen I want to pan the audio to the left and to the right respectively. I've added this into my btnRightPlay, however the audio still does not play on the right channel only. Does anyone have an advice on this? Do I need to add a buffer?

Pan.Right.Equals(10000);

Player codes for the video player

    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;
    }
}
4

0 回答 0