Sign up here and you can log into the forum!

Plugin: Recently Played Tracks

The WDTVExt plugin depot. Plugins/libraries/code only

Plugin: Recently Played Tracks   

Postby urias78 » Sat Sep 11, 2010 6:46 am

Hi,
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");
urias78
n00b
 
Posts: 19
Joined: Sun Apr 18, 2010 1:03 pm

Re: Plugin: Recently Played Tracks   

Postby alucard89 » Sun Sep 19, 2010 5:59 am

Not really working for music played from network share(no file found error).
Or does it only work for music track from USB connected to the WDTV?
User avatar
alucard89
WDTVer
 
Posts: 42
Joined: Thu Sep 16, 2010 12:58 pm

Re: Plugin: Recently Played Tracks   

Postby recliq » Sun Sep 19, 2010 6:17 am

it's a 'sortcut' to "Music => Local Drives => Recent", so no it doesn't work with network shares...
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5025
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Plugin: Recently Played Tracks   

Postby alucard89 » Sun Sep 19, 2010 8:02 pm

recliq wrote:it's a 'sortcut' to "Music => Local Drives => Recent", so no it doesn't work with network shares...


I see, thanks for the clarification.
User avatar
alucard89
WDTVer
 
Posts: 42
Joined: Thu Sep 16, 2010 12:58 pm


Return to WDTVExt plugins

Who is online

Users browsing this forum: No registered users and 1 guest