Browse Source

ffplay: add 10 minute seek support to ffplay

Signed-off-by: Marton Balint <cus@passwd.hu>
tags/n0.10
Panagiotis H.M. Issaris Marton Balint 13 years ago
parent
commit
91a3ea671a
2 changed files with 10 additions and 0 deletions
  1. +3
    -0
      doc/ffplay.texi
  2. +7
    -0
      ffplay.c

+ 3
- 0
doc/ffplay.texi View File

@@ -168,6 +168,9 @@ Seek backward/forward 10 seconds.
@item down/up
Seek backward/forward 1 minute.

@item page down/page up
Seek backward/forward 10 minutes.

@item mouse click
Seek to percentage in file corresponding to fraction of width.



+ 7
- 0
ffplay.c View File

@@ -2850,6 +2850,12 @@ static void event_loop(VideoState *cur_stream)
case SDLK_w:
toggle_audio_display(cur_stream);
break;
case SDLK_PAGEUP:
incr = 600.0;
goto do_seek;
case SDLK_PAGEDOWN:
incr = -600.0;
goto do_seek;
case SDLK_LEFT:
incr = -10.0;
goto do_seek;
@@ -3119,6 +3125,7 @@ static int opt_help(const char *opt, const char *arg)
"s activate frame-step mode\n"
"left/right seek backward/forward 10 seconds\n"
"down/up seek backward/forward 1 minute\n"
"page down/page up seek backward/forward 10 minutes\n"
"mouse click seek to percentage in file corresponding to fraction of width\n"
);
return 0;


Loading…
Cancel
Save