Skip to content

Commit

Permalink
Merge pull request #108 from kshala-ford/feature/audio_streaming_indi…
Browse files Browse the repository at this point in the history
…cator

[SDL 0109] SetAudioStreamingIndicator RPC
  • Loading branch information
joeygrover authored Oct 2, 2018
2 parents 79f8b01 + 3e9a1a4 commit 2bf344b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
27 changes: 27 additions & 0 deletions MOBILE_API.xml
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,27 @@
<description>Similar to VP8, but VP9 is customized for video resolutions beyond high-definition video (UHD) and also enables lossless compression.</description>
</element>
</enum>

<enum name="AudioStreamingIndicator" since="5.0">
<element name="PLAY_PAUSE">
<description>
Default playback indicator.
By default the playback indicator should be PLAY_PAUSE when:
- the media app is newly registered on the head unit (after RegisterAppInterface)
- the media app was closed by the user (App enters HMI_NONE)
- the app sends SetMediaClockTimer with audioStreamingIndicator not set to any value
</description>
</element>
<element name="PLAY">
<description>Indicates that a button press of the Play/Pause button starts the audio playback.</description>
</element>
<element name="PAUSE">
<description>Indicates that a button press of the Play/Pause button pauses the current audio playback.</description>
</element>
<element name="STOP">
<description>Indicates that a button press of the Play/Pause button stops the current audio playback.</description>
</element>
</enum>

<struct name="Image" since="2.0">
<param name="value" minlength="0" maxlength="65535" type="String" mandatory="true">
Expand Down Expand Up @@ -4076,6 +4097,12 @@
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.
</description>
</param>

<param name="audioStreamingIndicator" type="AudioStreamingIndicator" mandatory="false" since="5.0">
<description>
Enumeration for the indicator icon on a play/pause button. see AudioStreamingIndicator.
</description>
</param>
</function>

<function name="SetMediaClockTimer" functionID="SetMediaClockTimerID" messagetype="response" since="1.0">
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,17 @@ Enum for each type of video streaming codec.
|`VP9`|Similar to VP8, but VP9 is customized for video resolutions beyond high-definition video (UHD) and also enables lossless compression.|


### AudioStreamingIndicator
##### Elements

| Value | Description |
| ---------- |:-----------:|
|`PLAY_PAUSE`|Default playback indicator. By default the playback indicator should be PLAY_PAUSE when: - the media app is newly registered on the head unit (after RegisterAppInterface) - the media app was closed by the user (App enters HMI_NONE) - the app sends SetMediaClockTimer with audioStreamingIndicator not set to any value |
|`PLAY`|Indicates that a button press of the Play/Pause button starts the audio playback.|
|`PAUSE`|Indicates that a button press of the Play/Pause button pauses the current audio playback.|
|`STOP`|Indicates that a button press of the Play/Pause button stops the current audio playback.|


### GlobalProperty
The different global properties.

Expand Down Expand Up @@ -2570,6 +2581,7 @@ Sets the initial media clock value and automatic update method.
|`startTime`|StartTime|False|See StartTime. startTime must be provided for "COUNTUP" and "COUNTDOWN". startTime will be ignored for "RESUME", and "CLEAR" startTime can be sent for "PAUSE", in which case it will update the paused startTime |
|`endTime`|StartTime|False|See 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 then 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 |
|`updateMode`|UpdateMode|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`|AudioStreamingIndicator|False|Enumeration for the indicator icon on a play/pause button. see AudioStreamingIndicator. |


### SetMediaClockTimer
Expand Down

0 comments on commit 2bf344b

Please # to comment.