cgarwood / homeassistant-fullykiosk

Fully Kiosk Browser integration for Home Assistant
Apache License 2.0
153 stars 27 forks source link

playVideo? #119

Open cranky-coder opened 2 years ago

cranky-coder commented 2 years ago

I have been playing with the rest call and think it could be added to the integration. My rest call looks like this.

service: rest_command.kiosk_command data: cmd: playVideo tablet: 192.168.2.78 url: http://192.168.2.14:93/h264/Doorbell/temp.m3u8 type: json showControls: 0 loop: 0 exitOnCompletion: 1 exitOnTouch: 1

The main things I could see being added as options when doing playmedia would be showcontrols, loop, exitoncompletion and exitontouch. I use the exitontouch so my doorbell triggers my tablets to play the video feed from the door bell for 10 seconds, but I can tap the screen and it exits out.

*apologies can't seem to get the code formatting to work.