Skip to content

Commit

Permalink
Seek a frame by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbirec committed May 7, 2016
1 parent 15d7d0b commit 992ef92
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 217 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
go-peerflix.h
go-peerflix.a
PeerPlayer.xcodeproj/xcuserdata

This file was deleted.

This file was deleted.

This file was deleted.

15 changes: 13 additions & 2 deletions PeerPlayer/RootView.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,22 @@ -(void) keyDown:(NSEvent *)event
break;
// Left arrow
case 123:
[[MpvController getInstance] seek:-10];
if([event modifierFlags] & NSShiftKeyMask) {
[[MpvController getInstance] seek:-10];
}
else {
[[MpvController getInstance] seek:-1];
}
break;
// Right arrow
case 124:
[[MpvController getInstance] seek:10];
if([event modifierFlags] & NSShiftKeyMask) {
[[MpvController getInstance] seek:10];
}
else {
[[MpvController getInstance] seek:1];
}

break;
// Up arrow
case 126:
Expand Down

0 comments on commit 992ef92

Please sign in to comment.