From db8fbc43f7e73c47ace0ad30ae59393ad92e8e1d Mon Sep 17 00:00:00 2001 From: Chris Talkington Date: Thu, 20 Jan 2022 07:10:44 -0600 Subject: [PATCH] Add camera play stream support to roku (#21218) --- source/_integrations/roku.markdown | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/source/_integrations/roku.markdown b/source/_integrations/roku.markdown index e4579f7ba73..66e088745a3 100644 --- a/source/_integrations/roku.markdown +++ b/source/_integrations/roku.markdown @@ -100,7 +100,7 @@ The `media_player.select_source` service may be used to launch specific applicat action: - service: media_player.select_source target: - entity_id: media_player. + entity_id: media_player.roku data: source: "Prime Video" ``` @@ -128,7 +128,7 @@ The `media_player.play_media` service may be used to tune to specific channels o | Service data attribute | Optional | Description | Example | | ---------------------- | -------- | ----------- | ------- | -| `entity_id` | no | Target a specivic media player. | +| `entity_id` | no | Target a specific media player. | | `media_content_id` | no | A channel number. | 5.1 | `media_content_type` | no | A media type. | `channel` @@ -150,7 +150,7 @@ The `media_player.play_media` service may be used to send media URLs (primarily | Service data attribute | Optional | Description | Example | | ---------------------- | -------- | ----------- | ------- | -| `entity_id` | no | Target a specific media player. To target all media players, use `all`. | | +| `entity_id` | no | Target a specific media player. | | `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` @@ -171,13 +171,27 @@ action: name: Big Buck Bunny ``` +## Camera Stream Integration + +The `camera.play_stream` service may be used to send camera streams (HLS) directly to your device. This feature requires the `stream` integration and makes use of the built-in PlayOnRoku application. + +### Example +```yaml +action: + service: camera.play_stream + target: + entity_id: camera.camera + data: + media_player: media_player.roku +``` + ## Content Deeplinking The `media_player.play_media` service may be used to deep link to content within an application. | Service data attribute | Optional | Description | Example | | ---------------------- | -------- | ----------- | ------- | -| `entity_id` | no | Target a specific media player. To target all media players, use `all`. | | +| `entity_id` | no | Target a specific media player. | | `media_content_id` | no | A media identifier. | 291097 | `media_content_type` | no | A media type. | `app` | `extra.content_id` | no | A unique content identifier passed to app. | 8e06a8b7-d667-4e31-939d-f40a6dd78a88