我是WP7编程新手,
http://msdn.microsoft.com/en-us/library/hh394041(v=vs.92).aspx
这对我来说很好,但我正在寻找Pause& amp;恢复功能...
提前致谢。
答案 0 :(得分:0)
从您发布的链接:
// Pause video playback.
private void PausePlayback_Click(object sender, EventArgs e)
{
// Avoid duplicate taps.
PausePlayback.IsEnabled = false;
// If mediaElement exists, pause playback.
if (VideoPlayer != null)
{
VideoPlayer.Pause();
}
// Set the button state and the message.
UpdateUI(ButtonState.Paused, "Playback paused.");
}