如何在WP7中暂停和恢复视频录制

时间:2012-06-01 15:44:28

标签: windows-phone-7

我是WP7编程新手,

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

这对我来说很好,但我正在寻找Pause& amp;恢复功能...

提前致谢。

1 个答案:

答案 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.");
}