This plugin will enable you to add the recently played music tracks icon to the main menu
Enjoy
- Code: Select all
//RecentTracks.plugin.js
//Adds the recently played music tracks icon to the main menu
traceln("Start loading RecentTracks plugin")
function RecentTracksPlugin(path) {
this.rootPath = path;
traceln("RecentTracks plugin : base path is " + this.rootPath);
}
RecentTracksPlugin.prototype = new Plugin();
RecentTracksPlugin.prototype.constructor = RecentTracksPlugin;
RecentTracksPlugin.prototype.doBuildMenus = function() {
traceln("RecentTracksPlugin.prototype.doBuildMenus...");
var Recent = new Menu("Recent Tracks","$$Recent Tracks","/osd/image/villa/home_recent_icon_n.png","/osd/image/villa/home_recent_icon_f.png", true);
Recent.handler = function(){
Menu.Top["$$Music"]["$$Local Drives"]["$$Recent"].handler()
};
Menu.Top.addChild(Recent);
}
RecentTracksPlugin.instance = new RecentTracksPlugin(scriptPath);
Plugin.registerPlugin(RecentTracksPlugin.instance);
traceln("End loading RecentTracks plugin");



