Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions source/_integrations/roku.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,33 @@ action:
media_content_type: channel
```

## Play on Roku

The `media_player.play_media` service may be used to send media URLs (primarily videos) for direct playback on your device. This feature makes use of the built-in PlayOnRoku application.

| Service data attribute | Optional | Description | Example |
| ---------------------- | -------- | ----------- | ------- |
| `entity_id` | no | Target a specific media player. To target all media players, use `all`. | |
| `media_content_id` | no | A media URL. | http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4
| `media_content_type` | no | A media type. | `url`
| `extra.format` | no | A media format. Should be one of `mp4` (supports mov and m4v), `wma`, `mp3`, `hls`, `ism` (smooth streaming), `dash` (MPEG-DASH), `mkv`, `mka`, `mks` | `mp4`
Comment thread
ctalkington marked this conversation as resolved.
| `extra.name` | yes | A name for the media. | Big Buck Bunny

### Example

```yaml
action:
- service: media_player.play_media
target:
entity_id: media_player.roku
data:
media_content_id: http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4
media_content_type: url
extra:
format: mp4
name: Big Buck Bunny
```

## Content Deeplinking

The `media_player.play_media` service may be used to deep link to content within an application.
Expand Down