|
|
@ -12,6 +12,8 @@ |
|
|
|
* @prop {speed: number} Current speed rate |
|
|
|
* @prop {play: function} Called to start playback |
|
|
|
* @prop {pause: function} Called to pause playback |
|
|
|
* @prop {halt: function} Called to temporarily halt playback |
|
|
|
* @prop {resume: function} Called to resume halted playback |
|
|
|
* @prop {showChannelsModal: function} Called to show channels manager |
|
|
|
* @prop {setPlaySpeed: function} Called to set play speed |
|
|
|
* @prop {close: function} Called to close |
|
|
@ -27,6 +29,9 @@ |
|
|
|
|
|
|
|
play: React.PropTypes.func, |
|
|
|
pause: React.PropTypes.func, |
|
|
|
halt: React.PropTypes.func, |
|
|
|
resume: React.PropTypes.func, |
|
|
|
|
|
|
|
showChannelsModal: React.PropTypes.func, |
|
|
|
setPlaySpeed: React.PropTypes.func, |
|
|
|
close: React.PropTypes.func |
|
|
@ -39,6 +44,9 @@ |
|
|
|
|
|
|
|
play: function () {}, |
|
|
|
pause: function () {}, |
|
|
|
halt: function () {}, |
|
|
|
resume: function () {}, |
|
|
|
|
|
|
|
showChannelsModal: function () {}, |
|
|
|
setPlaySpeed: function () {}, |
|
|
|
close: function () {} |
|
|
@ -99,7 +107,7 @@ |
|
|
|
|
|
|
|
controls.push(App.components.UI.Selector({ |
|
|
|
key: 'setPlaySpeed', |
|
|
|
className: 'bt icon set-play-speed', |
|
|
|
className: 'bt set-play-speed', |
|
|
|
|
|
|
|
values: [1, 0.5, 0.3, 1, 2, 3], |
|
|
|
value: this.props.speed, |
|
|
|