Closed wickwire closed 8 years ago
Wow, awesome! I am going to make some edits after I merge so anyone can define the video and add a custom title.
Just made the changes. Now in the deviceJson, the key youtubeID
is the youtube video id. For example (also in documentation now):
"youTubeStream": {
"values": {
"youtubeID": "GZnb3jQ2YZo"
},
"card-type": "crouton-video-youtube",
"title": "YouTube Stream"
}
Also hope you don't mind your stream being in the demo!
… hardcoded in this commit.
My motivation for this dashboard element derives from the fact that in my custom solution, I'll be having a webcam monitoring my solution and I'd like to have the live stream associated with the device.
Single click toggles between play/pause; Double click toggles between normal dashboard element size and full screen video.