0

我是 WP7 编程的新手,

http://msdn.microsoft.com/en-us/library/hh394041(v=vs.92).aspx

这对我来说很好,但我正在寻找暂停和恢复功能......

提前致谢。

4

1 回答 1

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.");
}
于 2012-06-01T18:12:49.793 回答