mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 22:06:50 +00:00
Add example usage to media_source (#15256)
This commit is contained in:
parent
f49113785f
commit
3dc97e9dd0
@ -54,4 +54,18 @@ homeassistant:
|
||||
recording: /mnt/recordings
|
||||
```
|
||||
|
||||
## Playing media from a Media Source
|
||||
|
||||
To play media from a media source via a service call, use the uri scheme `media-source://media_source/<media_dir>/<path>`.
|
||||
Default `media_dir`is `local`.
|
||||
|
||||
Example:
|
||||
```yaml
|
||||
service: media_player.play_media
|
||||
data:
|
||||
entity_id: media_player.living_room_tv
|
||||
media_content_type: video/mp4
|
||||
media_content_id: media-source://media_source/local/videos/favourites/Epic Sax Guy 10 Hours.mp4
|
||||
```
|
||||
|
||||
[basic-configuration]: /docs/configuration/basic/#media_dirs
|
||||
|
Loading…
x
Reference in New Issue
Block a user