暂停视频并再次单击播放按钮后,视频将重新开始。我想要的是让他们从暂停的地方继续播放。 axWindowsMediaPlayer中没有“恢复”功能,该怎么办?
我当前的播放和暂停按钮代码是-
private void btnPlay_Click(object sender, EventArgs e) {
axWindowsMediaPlayer1.URL = @"C:\Users\sit\Videos\Video Security\test1.mp4";
axWindowsMediaPlayer1.Ctlcontrols.play();
axWindowsMediaPlayer2.URL = @"C:\Users\sit\Videos\Video Security\test2.mp4";
axWindowsMediaPlayer2.Ctlcontrols.play();
}
private void btnPause_Click(object sender, EventArgs e) {
axWindowsMediaPlayer1.Ctlcontrols.pause();
axWindowsMediaPlayer2.Ctlcontrols.pause();
}