[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:
@@ -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")
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user