예제 #1
0
        private void Window_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.Key)
            {
            case Key.Space:
                MediaControl.Play(Video, pctPlay);
                break;

            case Key.Left:
                MediaControl.MooveBackward(Video);
                break;

            case Key.Right:
                MediaControl.MooveForward(Video);
                break;

            case Key.C:
                MediaControl.ActivateCc(lblSubtitle);
                break;
            }
        }
예제 #2
0
 private void btnPlay_Click(object sender, RoutedEventArgs e)
 {
     MediaControl.Play(Video, pctPlay);
 }