Skip to content
Snippets Groups Projects
Commit af07d9b3 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Seek with DPAD RIGHT and LEFT

parent d054c934
No related branches found
No related tags found
No related merge requests found
......@@ -1171,10 +1171,18 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
case KeyEvent.KEYCODE_MEDIA_STOP:
exitOK();
return true;
case KeyEvent.KEYCODE_DPAD_UP:
case KeyEvent.KEYCODE_DPAD_DOWN:
case KeyEvent.KEYCODE_DPAD_LEFT:
if (!mShowing) {
seekDelta(-10000);
return true;
}
case KeyEvent.KEYCODE_DPAD_RIGHT:
if (!mShowing) {
seekDelta(10000);
return true;
}
case KeyEvent.KEYCODE_DPAD_UP:
case KeyEvent.KEYCODE_DPAD_DOWN:
case KeyEvent.KEYCODE_DPAD_CENTER:
case KeyEvent.KEYCODE_ENTER:
if (mIsNavMenu)
......@@ -2424,8 +2432,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
long position = getTime() + delta;
if (position < 0) position = 0;
seek(position);
showOverlay();
seek(position);
showInfo(Strings.millisToString(mService.getTime())+"/"+Strings.millisToString(mService.getLength()), 1000);
}
private void initSeekButton() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment