Difference between revisions of "DevelopWDTVExtPlugin"
From WikiDLXTV
(Created page with '= 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…') |
|||
Line 26: | Line 26: | ||
** markupFileName - OSD XML Filename | ** markupFileName - OSD XML Filename | ||
** extraContent - XML Content to append the original XML File | ** extraContent - XML Content to append the original XML File | ||
+ | ** isMediaListPage | ||
+ | ** selectedMedia | ||
+ | *** name | ||
+ | *** folder | ||
+ | *** path | ||
+ | ** setParam(paramName, value) | ||
===== Event ===== | ===== Event ===== | ||
<code>YourPlugin.prototype.onPageCreated = function(page){ }</code> | <code>YourPlugin.prototype.onPageCreated = function(page){ }</code> |
Revision as of 13:44, 12 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)
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){ }