Example #1
0
 private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         FFplay.ffplay_toggle_pause();
     }
 }
Example #2
0
 private void FormPlayer_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Space)
     {
         FFplay.ffplay_toggle_pause();
         e.Handled = true;
     }
     else if (e.KeyCode == Keys.F)
     {
         FFplay.ffplay_step_to_next_frame();
         e.Handled = true;
     }
     else if (e.KeyCode == Keys.Left)
     {
         FFplay.ffplay_set_position(FFplay.ffplay_get_position() - jumpPos);
         e.Handled = true;
     }
     else if (e.KeyCode == Keys.Right)
     {
         FFplay.ffplay_set_position(FFplay.ffplay_get_position() + jumpPos);
         e.Handled = true;
     }
 }
Example #3
0
 private void buttonPause_Click(object sender, EventArgs e)
 {
     FFplay.ffplay_toggle_pause();
 }