Skip to content

Commit 62ce821

Browse files
committed
Improve media_player documentation
1 parent 68bfa01 commit 62ce821

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

source/_components/media_player.markdown

+5-16
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,18 @@ Interacts with media players on your network. Please check the sidebar for a ful
1515

1616

1717
### {% linkable_title Media control services %}
18-
Available services: `turn_off`, `volume_up`, `volume_down`, `media_play_pause`, `media_play`, `media_pause`, `media_next_track`
18+
Available services: `turn_off`, `volume_up`, `volume_down`, `media_play_pause`, `media_pause`, `media_next_track`
1919

2020
| Service data attribute | Optional | Description |
2121
| ---------------------- | -------- | ----------- |
2222
| `entity_id` | yes | Target a specific media player. Defaults to all.
2323

24-
### {% linkable_title Media play services %}
24+
### {% linkable_title Playing Media %}
2525

26-
There are three services to start playing YouTube video's on the media player.
27-
28-
#### {% linkable_title Service `media_player/play_youtube_video` %}
29-
30-
Service to start playing a YouTube video on the media player.
31-
32-
| Service data attribute | Optional | Description |
33-
| ---------------------- | -------- | ----------- |
34-
| `entity_id` | yes | Target a specific media player. Defaults to all.
35-
| `video` | no | YouTube video to be played, ie. `L0MK7qz13bU`
36-
37-
#### {% linkable_title Service `media_player/start_fireplace` and `media_player/start_epic_sax` %}
38-
39-
Will either start a fireplace or Epic Sax Guy 10h on the media player.
26+
#### {% linkable_title Service `media_player/play_media` %}
4027

4128
| Service data attribute | Optional | Description |
4229
| ---------------------- | -------- | ----------- |
4330
| `entity_id` | yes | Target a specific media player. Defaults to all.
31+
| `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.
32+
| `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`.

0 commit comments

Comments
 (0)