Difference between revisions of "DevelopWDTVExtPlugin"
From WikiDLXTV
Line 34: | Line 34: | ||
*** path | *** path | ||
** setParam(paramName, value) | ** setParam(paramName, value) | ||
+ | ** getParam(paramName) | ||
===== Event ===== | ===== Event ===== | ||
<code>YourPlugin.prototype.onPageCreated = function(page){ }</code> | <code>YourPlugin.prototype.onPageCreated = function(page){ }</code> |
Revision as of 04:48, 19 April 2010
Contents
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)
- getParam(paramName)
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){ }