If you create actions.json with the following, then you will get 'Server settings' in the main menu:
Code:{ "system":[ { "title":"Server settings", "script":"bus.$emit('dlg.open', 'iframe', '/material/settings/server/basic.html', 'Server settings')", "icon":"dns" } ] }
Results 6,721 to 6,730 of 7126
Thread: Announce: Material Skin
-
2021-03-04, 10:55 #6721
- Join Date
- Mar 2017
- Posts
- 2,740
Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 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.
-
2021-03-04, 12:07 #6722
-
2021-03-04, 13:22 #6723
- Join Date
- Jul 2007
- Location
- Boston, MA, USA
- Posts
- 171
That's very cool.
Sorry for asking, but is there a few lines for actions.json that will add the player settings? I can see the icon should be music_note, but I can't figure out what the URL should be for the iframe (or what the call should be). Sadly I'm not a knowledgeable js programmer, but definitely know enough to break things.
TomSSB3(1), Boom(2), Radio(3), piCorePlayer (1)
-
2021-03-04, 13:40 #6724
- Join Date
- Jan 2013
- Posts
- 313
Last edited by Shozzer; 2021-03-04 at 13:44.
-
2021-03-04, 14:23 #6725
- Join Date
- Mar 2017
- Posts
- 2,740
Server & player settings:
Code:{ "system":[ { "title":"Server settings", "script":"bus.$emit('dlg.open', 'iframe', '/material/settings/server/basic.html', 'Server settings')", "icon":"dns" }, { "title":"Player settings", "script":"bus.$emit('dlg.open', 'playersettings')", "icon":"music_note" } ] }
Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 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.
-
2021-03-04, 14:25 #6726
- Join Date
- Mar 2017
- Posts
- 2,740
Might need to refresh your browser's cache (hard reload?). Also, ensure the file is 100% valid JSON - check via https://duckduckgo.com/?q=json+parser&t=h_&ia=answer
Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 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.
-
2021-03-04, 14:29 #6727
- Join Date
- Jul 2007
- Location
- Boston, MA, USA
- Posts
- 171
-
2021-03-04, 14:34 #6728
- Join Date
- Mar 2017
- Posts
- 2,740
Ah! If you mean directly into LMS's player settings, then:
Code:{ "system":[ { "title":"Server settings", "script":"bus.$emit('dlg.open', 'iframe', '/material/settings/server/basic.html', 'Server settings')", "icon":"dns" }, { "title":"Player settings", "script":"bus.$emit('dlg.open', 'iframe', '/material/settings/player/basic.html?player=$ID', 'Player settings');", "icon":"music_note" } ] }
Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 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.
-
2021-03-04, 14:58 #6729
-
2021-03-04, 14:59 #6730
- Join Date
- Jul 2007
- Location
- Boston, MA, USA
- Posts
- 171