public class SetMediaClockTimer extends RPCRequest
Function Group: Base
HMILevel needs to be FULL, LIMITED or BACKGROUND
Parameter List
| Param Name | Type | Description | Req. | Notes | Version Available |
|---|---|---|---|---|---|
| startTime | StartTime | StartTime struct specifying hour, minute, second values to which media clock timer is set. | N | SmartDeviceLink 1.0 | |
| endTime | StartTime | EndTime can be provided for "COUNTUP" and "COUNTDOWN"; 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 "RESUME", and "CLEAR" endTime can be sent for "PAUSE", in which case it will update the paused endTime | N | Array must have at least one element. Only optional it helpPrompt has been specified minsize: 1; maxsize: 100 |
SmartDeviceLink 1.0 |
| updateMode | UpdateMode | Specifies how the media clock/timer is to be updated (COUNTUP/COUNTDOWN/PAUSE/RESUME), based at the startTime. | Y | If "updateMode" is COUNTUP or COUNTDOWN, this parameter must be provided. Will be ignored for PAUSE,RESUME and CLEAR | SmartDeviceLink 1.0 |
| audioStreamingIndicator | AudioStreamingIndicator | N | SmartDeviceLink 5.0 | ||
| countRate | Float | 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. | N | {"num_min_value": 0.1, "num_max_value": 100.0} |
|
| forwardSeekIndicator | SeekStreamingIndicator | Used to control the forward seek button to either skip forward a set amount of time or to the next track. | N | , SmartDeviceLink 7.1.0 | |
| backSeekIndicator | SeekStreamingIndicator | Used to control the forward seek button to either skip back a set amount of time or to the previous track. | N | , SmartDeviceLink 7.1.0 |
Response
Non-default Result Codes:
SUCCESS
INVALID_DATA
OUT_OF_MEMORY
TOO_MANY_PENDING_REQUESTS
APPLICATION_NOT_REGISTERED
GENERIC_ERROR
REJECTED
IGNORED
, SmartDeviceLink 1.0| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_AUDIO_STREAMING_INDICATOR |
static String |
KEY_BACK_SEEK_INDICATOR |
static String |
KEY_COUNT_RATE |
static String |
KEY_END_TIME |
static String |
KEY_FORWARD_SEEK_INDICATOR |
static String |
KEY_START_TIME |
static String |
KEY_UPDATE_MODE |
onResponseListenerfunction, KEY_CORRELATION_ID, KEY_FUNCTION_NAME, KEY_NOTIFICATION, KEY_PARAMETERS, KEY_REQUEST, KEY_RESPONSE, messageType, parametersKEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
SetMediaClockTimer()
Constructs a new SetMediaClockTimer object
|
SetMediaClockTimer(Hashtable<String,Object> hash)
Constructs a new SetMediaClockTimer object indicated by the Hashtable
parameter
|
SetMediaClockTimer(UpdateMode updateMode)
Constructs a new SetMediaClockTimer object
|
| Modifier and Type | Method and Description |
|---|---|
static SetMediaClockTimer |
clearWithPlayPauseIndicator(AudioStreamingIndicator audioStreamingIndicator)
Remove a media clock timer from the screen
|
static SetMediaClockTimer |
countDownFromStartTime(StartTime startTime,
StartTime endTime,
AudioStreamingIndicator audioStreamingIndicator)
Create a media clock timer that counts down, e.g.
|
static SetMediaClockTimer |
countDownFromStartTimeInterval(Integer startTimeInterval,
Integer endTimeInterval,
AudioStreamingIndicator audioStreamingIndicator)
Create a media clock timer that counts down, e.g.
|
static SetMediaClockTimer |
countUpFromStartTime(StartTime startTime,
StartTime endTime,
AudioStreamingIndicator audioStreamingIndicator)
Create a media clock timer that counts up, e.g from 0:00 to 4:18.
|
static SetMediaClockTimer |
countUpFromStartTimeInterval(Integer startTimeInterval,
Integer endTimeInterval,
AudioStreamingIndicator audioStreamingIndicator)
Create a media clock timer that counts up, e.g from 0:00 to 4:18.
|
AudioStreamingIndicator |
getAudioStreamingIndicator()
Gets the playback status of a media app
|
SeekStreamingIndicator |
getBackSeekIndicator()
Gets the backSeekIndicator.
|
Float |
getCountRate()
Gets the countRate.
|
StartTime |
getEndTime() |
SeekStreamingIndicator |
getForwardSeekIndicator()
Gets the forwardSeekIndicator.
|
StartTime |
getStartTime()
Gets the Start Time which media clock timer is set
|
UpdateMode |
getUpdateMode()
Gets the media clock/timer update mode (COUNTUP/COUNTDOWN/PAUSE/RESUME)
|
static SetMediaClockTimer |
pauseWithPlayPauseIndicator(AudioStreamingIndicator audioStreamingIndicator)
Pause an existing (counting up / down) media clock timer
|
static SetMediaClockTimer |
resumeWithPlayPauseIndicator(AudioStreamingIndicator audioStreamingIndicator)
Resume a paused media clock timer.
|
SetMediaClockTimer |
setAudioStreamingIndicator(AudioStreamingIndicator audioStreamingIndicator)
Sets the playback status of a media app
|
SetMediaClockTimer |
setBackSeekIndicator(SeekStreamingIndicator backSeekIndicator)
Sets the backSeekIndicator.
|
SetMediaClockTimer |
setCountRate(Float countRate)
Sets the countRate.
|
SetMediaClockTimer |
setEndTime(StartTime endTime) |
SetMediaClockTimer |
setForwardSeekIndicator(SeekStreamingIndicator forwardSeekIndicator)
Sets the forwardSeekIndicator.
|
SetMediaClockTimer |
setStartTime(StartTime startTime)
Sets a Start Time with specifying hour, minute, second values
|
SetMediaClockTimer |
setUpdateMode(UpdateMode updateMode)
Sets the media clock/timer update mode (COUNTUP/COUNTDOWN/PAUSE/RESUME)
|
static SetMediaClockTimer |
updatePauseWithNewStartTime(StartTime startTime,
StartTime endTime,
AudioStreamingIndicator audioStreamingIndicator)
Update a pause time (or pause and update the time) on a media clock timer
|
static SetMediaClockTimer |
updatePauseWithNewStartTimeInterval(Integer startTimeInterval,
Integer endTimeInterval,
AudioStreamingIndicator audioStreamingIndicator)
Update a pause time (or pause and update the time) on a media clock timer
|
getCorrelationID, getOnRPCResponseListener, setCorrelationID, setOnRPCResponseListenergetBoolean, getDouble, getFloat, getFunctionID, getFunctionName, getInteger, getLong, getMessageType, getObject, getParameters, getString, setFunctionName, setParametersclone, deserializeJSON, equals, format, formatObject, getBulkData, getMessageTypeName, getStore, getStoreValue, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_START_TIME
public static final String KEY_END_TIME
public static final String KEY_UPDATE_MODE
public static final String KEY_AUDIO_STREAMING_INDICATOR
public static final String KEY_COUNT_RATE
public static final String KEY_FORWARD_SEEK_INDICATOR
public static final String KEY_BACK_SEEK_INDICATOR
public SetMediaClockTimer()
public SetMediaClockTimer(Hashtable<String,Object> hash)
hash - The Hashtable to usepublic SetMediaClockTimer(@NonNull
UpdateMode updateMode)
updateMode - a Enumeration value (COUNTUP/COUNTDOWN/PAUSE/RESUME) public static SetMediaClockTimer countUpFromStartTimeInterval(@NonNull Integer startTimeInterval, @NonNull Integer endTimeInterval, @Nullable AudioStreamingIndicator audioStreamingIndicator)
startTimeInterval - The start time interval, e.g. (0) 0:00endTimeInterval - The end time interval, e.g. (258) 4:18audioStreamingIndicator - playPauseIndicator An optional audio indicator to change the play/pause buttonpublic static SetMediaClockTimer countUpFromStartTime(@NonNull StartTime startTime, @NonNull StartTime endTime, @Nullable AudioStreamingIndicator audioStreamingIndicator)
startTime - The start time interval, e.g. 0:00endTime - The end time interval, e.g. 4:18audioStreamingIndicator - An optional audio indicator to change the play/pause buttonpublic static SetMediaClockTimer countDownFromStartTimeInterval(@NonNull Integer startTimeInterval, @NonNull Integer endTimeInterval, @Nullable AudioStreamingIndicator audioStreamingIndicator)
startTimeInterval - The start time interval, e.g. (258) 4:18endTimeInterval - The end time interval, e.g. (0) 0:00audioStreamingIndicator - An optional audio indicator to change the play/pause buttonpublic static SetMediaClockTimer countDownFromStartTime(@NonNull StartTime startTime, @NonNull StartTime endTime, @Nullable AudioStreamingIndicator audioStreamingIndicator)
startTime - The start time interval, e.g. 4:18endTime - The end time interval, e.g. 0:00audioStreamingIndicator - An optional audio indicator to change the play/pause buttonpublic static SetMediaClockTimer pauseWithPlayPauseIndicator(@Nullable AudioStreamingIndicator audioStreamingIndicator)
audioStreamingIndicator - An optional audio indicator to change the play/pause buttonpublic static SetMediaClockTimer updatePauseWithNewStartTimeInterval(@NonNull Integer startTimeInterval, @NonNull Integer endTimeInterval, @Nullable AudioStreamingIndicator audioStreamingIndicator)
startTimeInterval - The new start time intervalendTimeInterval - The new end time intervalaudioStreamingIndicator - An optional audio indicator to change the play/pause buttonpublic static SetMediaClockTimer updatePauseWithNewStartTime(@NonNull StartTime startTime, @NonNull StartTime endTime, @Nullable AudioStreamingIndicator audioStreamingIndicator)
startTime - The new start timeendTime - The new end timeaudioStreamingIndicator - An optional audio indicator to change the play/pause buttonpublic static SetMediaClockTimer resumeWithPlayPauseIndicator(@Nullable AudioStreamingIndicator audioStreamingIndicator)
audioStreamingIndicator - An optional audio indicator to change the play/pause buttonpublic static SetMediaClockTimer clearWithPlayPauseIndicator(@Nullable AudioStreamingIndicator audioStreamingIndicator)
audioStreamingIndicator - An optional audio indicator to change the play/pause buttonpublic StartTime getStartTime()
public SetMediaClockTimer setStartTime(StartTime startTime)
startTime - a startTime object with specifying hour, minute, second values
Notes:
public StartTime getEndTime()
public SetMediaClockTimer setEndTime(StartTime endTime)
public UpdateMode getUpdateMode()
public SetMediaClockTimer setUpdateMode(@NonNull UpdateMode updateMode)
updateMode - a Enumeration value (COUNTUP/COUNTDOWN/PAUSE/RESUME)
Notes:
public AudioStreamingIndicator getAudioStreamingIndicator()
public SetMediaClockTimer setAudioStreamingIndicator(AudioStreamingIndicator audioStreamingIndicator)
public SetMediaClockTimer setCountRate(Float countRate)
countRate - 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.
{"num_min_value": 0.1, "num_max_value": 100.0}public Float getCountRate()
public SetMediaClockTimer setForwardSeekIndicator(SeekStreamingIndicator forwardSeekIndicator)
forwardSeekIndicator - Used to control the forward seek button to either skip forward a set amount of time or to
the next track.public SeekStreamingIndicator getForwardSeekIndicator()
public SetMediaClockTimer setBackSeekIndicator(SeekStreamingIndicator backSeekIndicator)
backSeekIndicator - Used to control the forward seek button to either skip back a set amount of time or to the
previous track.public SeekStreamingIndicator getBackSeekIndicator()