-
Notifications
You must be signed in to change notification settings - Fork 469
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add checking for optional support of track control commands
The next/prev track control commands are optional in the MediaPlayback cluster. This will check for the commands using the AcceptedCommandList attribute in the MediaPlayback cluster and then switch to an appropriate profile if these commands are supported.
- Loading branch information
Showing
7 changed files
with
171 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
drivers/SmartThings/matter-media/profiles/media-video-player-speaker.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: media-video-player-speaker | ||
components: | ||
- id: main | ||
capabilities: | ||
- id: mediaPlayback | ||
version: 1 | ||
- id: keypadInput | ||
version: 1 | ||
- id: switch | ||
version: 1 | ||
- id: refresh | ||
version: 1 | ||
categories: | ||
- name: Television | ||
- id: speaker | ||
capabilities: | ||
- id: audioVolume | ||
version: 1 | ||
- id: audioMute | ||
version: 1 | ||
- id: refresh | ||
version: 1 | ||
categories: | ||
- name: Speaker |
16 changes: 16 additions & 0 deletions
16
drivers/SmartThings/matter-media/profiles/media-video-player-track-control.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: media-video-player-track-control | ||
components: | ||
- id: main | ||
capabilities: | ||
- id: mediaPlayback | ||
version: 1 | ||
- id: mediaTrackControl | ||
version: 1 | ||
- id: keypadInput | ||
version: 1 | ||
- id: switch | ||
version: 1 | ||
- id: refresh | ||
version: 1 | ||
categories: | ||
- name: Television |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters