Skip to content
cbara edited this page May 22, 2013 · 1 revision

Youtube plugin

  • Reference Name: YoutubePlugin
  • Code Source: youtubeplugin.coffee
  • Compiled Source: youtubeplugin.js

Features

  • Generates widgets that embed one YouTube video linked through the annotated YouTube video URL
  • Tthe expanded widget has the dimension of 600px X 450px ( only one video)
  • The expanded widget contains a video area (superior part) which runs youtube videos automatically

Dependencies

  • LDPlugin,

Web API connections

  • The plugin reacts to annotated YouTube video URL.

Widgets

  • Simple widget composed of: a button with a red youtube icon and a the concept label (overwritten by user, or DBpedia rdf: label) simple video widget
  • The expanded widget contains one video embedding: * expanded video widget - one video

Events

  • This plugin will attach the rendering logic of the widgets in the becomeActive event handler of each annotation that contains a YoutTube video URL in its resource field.

Mouse interaction

  • Each widget binds activate events to 'click' events and will trigger a widget expansion.
  • Expanded widgets close when 'clicking' the close (X) icon at the top left hand side of the expanded widget.
  • The video area embeds a YouTube player. All YouTube player interaction is available, except the player re-sizing.

Touch interaction

  • Each widget binds activate events to 'tap' events and will trigger a widget expansion.
  • Expanded widgets close when 'tapping' the close (X) icon at the top left hand side of the expanded widget.
  • The video area embeds a YouTube player. All YouTube player interaction is available, except the player re-sizing.

Google TV remote control interaction

  • Each widget binds activate events to 'OK' events and will trigger a widget expansion
  • Expanded widgets close when pressing the 'BACK' button
  • The video area automatically plays its assigned video source.

Clone this wiki locally