Skip to content

Commit

Permalink
Merge pull request #355 from smartdevicelink/feature/0244-setmediaclo…
Browse files Browse the repository at this point in the history
…cktimer

Add countRate to SetMediaClockTimer
  • Loading branch information
crokita authored Jan 25, 2021
2 parents bd6e77f + 5b1ca71 commit 02c0410
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/js/src/rpc/messages/SetMediaClockTimer.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,32 @@ class SetMediaClockTimer extends RpcRequest {
getAudioStreamingIndicator () {
return this.getObject(AudioStreamingIndicator, SetMediaClockTimer.KEY_AUDIO_STREAMING_INDICATOR);
}

/**
* Set the CountRate
* @since SmartDeviceLink 7.1.0
* @param {Number} rate - The value of this parameter is the amount that the media clock timer will advance per 1.0 seconds of real time. Values less than 1.0 will therefore advance the timer slower than real-time, while values greater than 1.0 will advance the timer faster than real-time. e.g. If this parameter is set to `0.5`, the timer will advance one second per two seconds real-time, or at 50% speed. If this parameter is set to `2.0`, the timer will advance two seconds per one second real-time, or at 200% speed. - The desired CountRate.
* {'num_min_value': 0.1, 'num_max_value': 100.0}
* @returns {SetMediaClockTimer} - The class instance for method chaining.
*/
setCountRate (rate) {
this.setParameter(SetMediaClockTimer.KEY_COUNT_RATE, rate);
return this;
}

/**
* Get the CountRate
* @returns {Number} - the KEY_COUNT_RATE value
*/
getCountRate () {
return this.getParameter(SetMediaClockTimer.KEY_COUNT_RATE);
}
}

SetMediaClockTimer.KEY_START_TIME = 'startTime';
SetMediaClockTimer.KEY_END_TIME = 'endTime';
SetMediaClockTimer.KEY_UPDATE_MODE = 'updateMode';
SetMediaClockTimer.KEY_AUDIO_STREAMING_INDICATOR = 'audioStreamingIndicator';
SetMediaClockTimer.KEY_COUNT_RATE = 'countRate';

export { SetMediaClockTimer };

0 comments on commit 02c0410

Please sign in to comment.