Skip to content

Commit

Permalink
Add MediaPlayback feature map to zcl xml definition
Browse files Browse the repository at this point in the history
Fixes Issue project-chip#22681
  • Loading branch information
cjswedes committed Sep 23, 2022
1 parent a90c6b1 commit 1e3dbc4
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ limitations under the License.
<server init="false" tick="false">true</server>
<description>This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker.</description>

<globalAttribute side="server" code="0xFFFC" value="0" />
<attribute side="server" code="0x0000" define="MEDIA_PLAYBACK_STATE" type="PlaybackStateEnum" min="0x00" max="0x02" default="0x00" writable="false" optional="false">CurrentState</attribute>
<attribute side="server" code="0x0001" define="MEDIA_PLAYBACK_START_TIME" type="EPOCH_US" min="0x00" default="0x00" writable="false" isNullable="true" optional="true">StartTime</attribute>
<attribute side="server" code="0x0002" define="MEDIA_PLAYBACK_DURATION" type="INT64U" min="0x00" default="0" writable="false" isNullable="true" optional="true">Duration</attribute>
Expand Down Expand Up @@ -112,4 +113,10 @@ limitations under the License.
<item name="SpeedOutOfRange" value="0x04"/>
<item name="SeekOutOfRange" value="0x05"/>
</enum>
</configurator>

<bitmap name="MediaPlaybackFeature" type="BITMAP32">
<cluster code="0x0506"/>
<field name="AdvancedSeek" mask="0x1"/>
<field name="VariableSpeed" mask="0x2"/>
</bitmap>
</configurator>

0 comments on commit 1e3dbc4

Please sign in to comment.