The UI.SetMediaClockTimer request indicates either an initial value for the media clock timer for a media application or an update to this value. The request may come for the application which is not currently active on the HMI.
updateMode
parameter: updateMode
parameter:startTime
value at the specified countRate
with a step of 1 second;endTime
is reached, if provided.startTime
or endTime
parameters are provided, the values must be updated on the HMI. countRate
;startTime
to 00:00:00 in the case that the startTime
parameter is not provided in the request, otherwise, startTime
must be updated with a new value. It is up to the HMI to determine the way the media clock timer is cleared: either to remove it from display or to set it to zero.BC.OnResetTimeout
notification to SDL to reset the timeout in case HMI needs more time to process the request.mediaClock
field is not indicated as supported in UI.GetCapabilities. By default, forwardSeekIndicator
and backSeekIndicator
should be set to TRACK
. The HMI should reset these values to TRACK
when:
RegisterAppInterface
and the button subscription).NONE
).SetMediaClockTimer
request with forwardSeekIndicator
and/or backSeekIndicator
not set to any value. Name | Type | Mandatory | Additional | Description |
---|---|---|---|---|
startTime | Common.TimeFormat | false | startTime must be provided together with modes: "COUNTUP", "COUNTDOWN", "PAUSE" to HMI. startTime will be ignored for "RESUME", and "CLEAR". | |
endTime | Common.TimeFormat | false | endTime can be provided together with modes: "COUNTUP", "COUNTDOWN", "PAUSE" to HMI. To be used to calculate any visual progress bar (if not provided, this feature is ignored). If endTime is greater than startTime for COUNTDOWN or less than startTime for COUNTUP, then the request will return an INVALID_DATA. endTime will be ignored for "PAUSE", "RESUME", and "CLEAR". | |
updateMode | Common.ClockUpdateMode | true | Enumeration to control the media clock. In case of pause, resume, or clear, the start time value is ignored and shall be left out. For resume, the time continues with the same value as it was when paused. | |
audioStreamingIndicator | Common.AudioStreamingIndicator | false | Indicates that a button press of the Play/Pause button would play, pause or stop the current playback. | |
forwardSeekIndicator | Common.SeekStreamingIndicator | false | Used to control the forward seek button to either skip forward a set amount of time or to the next track. | |
backSeekIndicator | Common.SeekStreamingIndicator | false | Used to control the backward seek button to either skip back a set amount of time or to the previous track. | |
countRate | Float | false | minvalue: 0.1 maxvalue: 100.0 defvalue: 1.0 |
The rate at which the media clock timer will progress. Values less than 1.0 will advance the timer slower than real-time (ex. 0.5 would advance the timer at 50% speed), while values greater than 1.0 will advance the timer faster than real-time (ex. 2.0 would advance the timer at 200% speed). |
appID | Integer | true |
This RPC has no additional parameter requirements
{ "id" : 109, "jsonrpc" : "2.0", "method" : "UI.SetMediaClockTimer", "params" : { "startTime" : { "hours" : 0, "minutes" : 18, "seconds" : 17 }, "updateMode" : "COUNTUP", "audioStreamingIndicator" : "PAUSE", "countRate": 1.0, "appID" : 65146 } }
{ "id" : 109, "jsonrpc" : "2.0", "result" : { "code" : 0, "method" : "UI.SetMediaClockTimer" } }
{ "id" : 109, "jsonrpc" : "2.0", "error" : { "code" : 11, "message" : "Invalid data", "data" : { "method" : "UI.SetMediaClockTimer" } } }