Add EntityFeature enum to Media Player (#1274)

This commit is contained in:
Franck Nijhof 2022-04-03 06:01:07 +02:00 committed by GitHub
parent 69c31d515e
commit bf8481a498
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,25 +28,28 @@ Properties should always only return information from memory and not do I/O (lik
## Supported Features ## Supported Features
| Constant | Description Supported features are defined by using values in the `MediaPlayerEntityFeature` enum
| -------- | ----------- and are combined using the bitwise or (`|`) operator.
| `SUPPORT_CLEAR_PLAYLIST` | Entity allows clearing the active playlist.
| `SUPPORT_GROUPING` | Entity can be grouped with other players for synchronous playback. | Value | Description |
| `SUPPORT_NEXT_TRACK` | Entity allows skipping to the next media track. | ------------------- | ------------------------------------------------------------------ |
| `SUPPORT_PAUSE` | Entity allows pausing the playback of media. | `CLEAR_PLAYLIST` | Entity allows clearing the active playlist. |
| `SUPPORT_PLAY` | Entity allows playing/resuming playback of media. | `GROUPING` | Entity can be grouped with other players for synchronous playback. |
| `SUPPORT_PLAY_MEDIA` | Entity allows playing media sources. | `NEXT_TRACK` | Entity allows skipping to the next media track. |
| `SUPPORT_PREVIOUS_TRACK` | Entity allows returning back to a previous media track. | `PAUSE` | Entity allows pausing the playback of media. |
| `SUPPORT_SEEK` | Entity allows seeking position during playback of media. | `PLAY` | Entity allows playing/resuming playback of media. |
| `SUPPORT_SELECT_SOURCE` | Entity allows selecting a source/input. | `PLAY_MEDIA` | Entity allows playing media sources. |
| `SUPPORT_SELECT_SOUND_MODE` | Entity allows selecting a sound mode. | `PREVIOUS_TRACK` | Entity allows returning back to a previous media track. |
| `SUPPORT_SHUFFLE_SET` | Entity allows shuffling the active playlist. | `SEEK` | Entity allows seeking position during playback of media. |
| `SUPPORT_STOP` | Entity allows stopping the playback of media. | `SELECT_SOURCE` | Entity allows selecting a source/input. |
| `SUPPORT_TURN_OFF` | Entity is able to be turned off. | `SELECT_SOUND_MODE` | Entity allows selecting a sound mode. |
| `SUPPORT_TURN_ON` | Entity is able to be turned on. | `SHUFFLE_SET` | Entity allows shuffling the active playlist. |
| `SUPPORT_VOLUME_MUTE` | Entity volume can be muted. | `STOP` | Entity allows stopping the playback of media. |
| `SUPPORT_VOLUME_SET` | Entity volume can be set to specific levels. | `TURN_OFF` | Entity is able to be turned off. |
| `SUPPORT_VOLUME_STEP` | Entity volume can be adjusted up and down. | `TURN_ON` | Entity is able to be turned on. |
| `VOLUME_MUTE` | Entity volume can be muted. |
| `VOLUME_SET` | Entity volume can be set to specific levels. |
| `VOLUME_STEP` | Entity volume can be adjusted up and down. |
## Methods ## Methods