private void pictureBox1_MouseClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { FFplay.ffplay_toggle_pause(); } }
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; } }
private void buttonPause_Click(object sender, EventArgs e) { FFplay.ffplay_toggle_pause(); }