hopkins wrote: > Hi, > > I have developed web pages for my albums (here is an example: > http://mycloudplayer.herokuapp.com/album#1590477808262) where I keep > track of the musicians and add comments. > > I would like to add a link (or button) to the "Playing" tab of the > Material skin page so that I can access an album's web page. I can > identify the page based on the LMS track id, but need to incorporate > some javascript to do that. What would be the best way to do that ? Any > pointers would be greatly appreciated. Thanks.
There is no way currently. However, Material allows you to add custom entries to the main menu, and to a player's menu (see the 'Custom menu entries' section of https://github.com/CDrummond/lms-material/wiki/Detailed-Information). What I can do is expand this to allow a custom entry to the context-menu of the now-playing cover. (Currently this menu has 'Show image', 'Show track information', 'Go to artist', etc). So, when I've implemented the changes, you would need to crate a file named -material-skin/actions.json- within your LMS's prefs folder. This would need something like: Code: -------------------- { "track":[ { "title":"Album details", "weblink":"http://mycloudplayer.herokuapp.com/album#$ALBUMID" } ] } -------------------- This would add an 'Album details' entry in the relevant menu that when clicked would take you to http://mycloudplayer.herokuapp.com/album#$ALBUMID - with $ALBUMID replaced by the track's album id. Make sense? If so, I'll see about adding this for 1.8.6 *Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here. ------------------------------------------------------------------------ cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686 View this thread: http://forums.slimdevices.com/showthread.php?t=109624 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
