edfungus / Crouton

Crouton MQTT IOT Dashboard
http://crouton.mybluemix.net/
Other
291 stars 69 forks source link

Added a new dashboard element: Youtube Stream. The video stream id is… #7

Closed wickwire closed 8 years ago

wickwire commented 8 years ago

… 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.

edfungus commented 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.

edfungus commented 8 years ago

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!