DevelopWDTVExtPlugin

From WikiDLXTV
Revision as of 12:44, 12 April 2010 by Calimero100582 (Talk | contribs)

Jump to: navigation, search

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
    • 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){ }