[chromecast] Added play URL actions to chromecast binding (#10245)

* Added play url actions to chromeCast binding

Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>
This commit is contained in:
Scott H
2021-03-14 13:16:30 -04:00
committed by GitHub
parent 849442cd47
commit 5f1dd38083
5 changed files with 135 additions and 1 deletions

View File

@@ -144,3 +144,19 @@ sitemap chromecast label="Chromecasts" {
}
}
```
## Rule Action
This binding includes rule actions for casting media.
* `playURL(String url)`
* `playURL(String url, String mimeType)`
Examples:
```
val castActions = getActions("chromecast","chromecast:chromecast:29fcf535da")
val success = castActions.playURL("http://192.168.1.160:81/mjpg/front1/video.mjpg")
val success2 = castActions.playURL("http://192.168.1.160:81/mjpg/front1/video.mjpg", "image/jpeg")
```