From cc3413ae01bfc041fe5b82bcb0968316265e0647 Mon Sep 17 00:00:00 2001 From: Robbie Trencheny Date: Fri, 25 Mar 2016 23:47:26 -0700 Subject: [PATCH] Lots more pretty media_player documentation updates! --- source/_components/media_player.markdown | 34 ++++++++++++++++++------ 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/source/_components/media_player.markdown b/source/_components/media_player.markdown index f5d73832c2d..2df70ef698b 100644 --- a/source/_components/media_player.markdown +++ b/source/_components/media_player.markdown @@ -13,20 +13,38 @@ Interacts with media players on your network. Please check the sidebar for a ful ## {% linkable_title Services %} - ### {% linkable_title Media control services %} -Available services: `turn_off`, `volume_up`, `volume_down`, `media_play_pause`, `media_pause`, `media_next_track` +Available services: `turn_on`, `turn_off`, `toggle`, `volume_up`, `volume_down`, `media_play_pause`, `media_play`, `media_pause`, `media_next_track`, `media_previous_track` | Service data attribute | Optional | Description | | ---------------------- | -------- | ----------- | | `entity_id` | yes | Target a specific media player. Defaults to all. -### {% linkable_title Playing Media %} +#### {% linkable_title Service `media_player/mute_volume` %} + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | ----------- | +| `entity_id` | yes | Target a specific media player. Defaults to all. +| `mute` | no | True/false for mute/unmute + +#### {% linkable_title Service `media_player/set_volume_level` %} + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | ----------- | +| `entity_id` | yes | Target a specific media player. Defaults to all. +| `volume` | no | Integer for volume level + +#### {% linkable_title Service `media_player/media_seek` %} + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | ----------- | +| `entity_id` | yes | Target a specific media player. Defaults to all. +| `position` | no | Position to seek to. The format is platform dependent. #### {% linkable_title Service `media_player/play_media` %} -| Service data attribute | Optional | Description | -| ---------------------- | -------- | ----------- | -| `entity_id` | yes | Target a specific media player. Defaults to all. -| `media_content_id` | no | A media identifier. The format of this is component dependent. For example, you can provide URLs to Sonos and Cast but only a playlist ID to iTunes. -| `media_content_type` | no | A media type. Must be one of `MUSIC`, `TVSHOW`, `VIDEO`, `EPISODE`, `CHANNEL` or `PLAYLIST`. For example, to play music you would set `media_content_type` to `MUSIC`. +| Service data attribute | Optional | Description | +| ------------------------------- | -------- | ----------- | +| `entity_id` | yes | Target a specific media player. Defaults to all. +| `media_content_id` | no | A media identifier. The format of this is component dependent. For example, you can provide URLs to Sonos and Cast but only a playlist ID to iTunes. +| `media_content_type` | no | A media type. Must be one of `MUSIC`, `TVSHOW`, `VIDEO`, `EPISODE`, `CHANNEL` or `PLAYLIST`. For example, to play music you would set `media_content_type` to `MUSIC`.