Difference between revisions of "DevelopWDTVExtPlugin"

From WikiDLXTV
Jump to: navigation, search
Line 11: Line 11:
 
===== Variable =====
 
===== Variable =====
 
* menuitem
 
* menuitem
** name - Menu name
+
** Name - Menu name
 +
** name - Menu name text
 
** title - Menu displayed title
 
** title - Menu displayed title
 
** image - Path to menu displayed icon
 
** image - Path to menu displayed icon

Revision as of 11:21, 16 April 2010

Develop - WDTV Ext's Plugin

WDTV Ext allow to add custom plugins/extensions to WDlxTV firmware.

All plugins start with Javascript file.

Filename

To load your plugin, the first Javascript filename needs to ends with ".plugin.js".

Event

Menu Event

Variable
  • menuitem
    • Name - Menu name
    • name - Menu name text
    • title - Menu displayed title
    • image - Path to menu displayed icon
    • focusedImage - Path to selected menu icon
    • visible - Visible or not
Event

YourPlugin.prototype.doBuildMenus = function() { }

YourPlugin.prototype.onMenuSelect = function(menuItem){ }

YourPlugin.prototype.onMenuDeselect = function(menuItem) { }

Page Event

Variable
  • page
    • markupFileName - OSD XML Filename
    • extraContent - XML Content to append the original XML File
    • isMediaListPage
    • selectedMedia
      • name
      • folder
      • path
    • setParam(paramName, value)
Event

YourPlugin.prototype.onPageCreated = function(page){ }

YourPlugin.prototype.onPageEnter = function(page){ }

YourPlugin.prototype.onPageKey = function(page, key){ }

YourPlugin.prototype.onPageLeave = function(page){ }

YourPlugin.prototype.onPageTimer = function(page){ }