add keyboard shortcut to toggle playback rate between 1 and 2
This commit is contained in:
parent
f2e7c75d2c
commit
5073700241
1 changed files with 4 additions and 0 deletions
|
@ -227,6 +227,9 @@ Ox.VideoAnnotationPanel = function(options, self) {
|
||||||
key_i: function() {
|
key_i: function() {
|
||||||
setPoint('in', self.options.position);
|
setPoint('in', self.options.position);
|
||||||
},
|
},
|
||||||
|
key_k: function togglePlaybackRate() {
|
||||||
|
that.options({playbackRate: self.options.playbackRate == 1 ? 2 : 1});
|
||||||
|
},
|
||||||
key_l: toggleLoop,
|
key_l: toggleLoop,
|
||||||
key_left: function() {
|
key_left: function() {
|
||||||
movePositionBy(-1 / self.options.fps);
|
movePositionBy(-1 / self.options.fps);
|
||||||
|
@ -558,6 +561,7 @@ Ox.VideoAnnotationPanel = function(options, self) {
|
||||||
[
|
[
|
||||||
{key: Ox.SYMBOLS.space, action: Ox._('Play/Pause')},
|
{key: Ox.SYMBOLS.space, action: Ox._('Play/Pause')},
|
||||||
{key: 'P', action: Ox._('Play In to Out')},
|
{key: 'P', action: Ox._('Play In to Out')},
|
||||||
|
{key: 'K', action: Ox._('Toggle Playback Speed')},
|
||||||
{key: 'L', action: Ox._('Loop')},
|
{key: 'L', action: Ox._('Loop')},
|
||||||
{key: '0', action: Ox._('Mute/Unmute')},
|
{key: '0', action: Ox._('Mute/Unmute')},
|
||||||
{key: '-', action: Ox._('Turn Volume Down')},
|
{key: '-', action: Ox._('Turn Volume Down')},
|
||||||
|
|
Loading…
Reference in a new issue