Announcement

Collapse
No announcement yet.

Announce: Material Skin

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Originally posted by rgdawson
    Craig,

    If (for Squeezelite-X), I wanted to remember the state of expandedNowPlaying between runs, how would I read that setting? I don't see anything in localStorage, so is there a variable or something I can read?

    R Greg Dawson
    Sorry, there is no setting - Material does not persist this.
    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.

    Comment


    • Originally posted by cpd73
      Sorry, there is no setting - Material does not persist this.
      Ha, well, I looked pretty hard, but figured I was too ignorant to figure it out. I was hoping I could just execute a Javascript function from within my app and return a variable, like toolbar.nowPlayingExpanded or something, but I could not make such a thing work. I don't need it persisted by Material if I can somehow figure it out. If I can do that, then I can persist it myself and pass action=expandNowPlaying/true as needed when I start up. And then if I can do that, I can remove a user setting from my app, which would no longer be needed.

      Greg
      Squeezelite-X

      Comment


      • Originally posted by rgdawson
        Ha, well, I looked pretty hard, but figured I was too ignorant to figure it out. I was hoping I could just execute a Javascript function from within my app and return a variable, like toolbar.nowPlayingExpanded or something, but I could not make such a thing work. I don't need it persisted by Material if I can somehow figure it out. If I can do that, then I can persist it myself and pass action=expandNowPlaying/true as needed when I start up. And then if I can do that, I can remove a user setting from my app, which would no longer be needed.

        Greg
        If you are injecting JS into Material, you should be able to access its variables so the following might work:

        Code:
        bus.$on('nowPlayingExpanded', function(expanded) {
            // Save value of expanded
        });
        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.

        Comment


        • Changing Theme

          Hello I am new to this forum and have also just started with an LMS.
          First of all, thanks for the great skin.
          I use the visualisation in my Smarthome wall tablet. There the LMS interface is displayed in an iframe.
          The theme of my display changes according to the time (light/dark). I would like to change the material theme of the LMS as well.

          Is it therefore possible to change the theme, e.g. via a simple http call? e.g. serveradress:9000/material/?cmd=xxx
          Many thanks for your support

          Comment


          • Originally posted by Heinerbub
            Hello I am new to this forum and have also just started with an LMS.
            First of all, thanks for the great skin.
            I use the visualisation in my Smarthome wall tablet. There the LMS interface is displayed in an iframe.
            The theme of my display changes according to the time (light/dark). I would like to change the material theme of the LMS as well.

            Is it therefore possible to change the theme, e.g. via a simple http call? e.g. serveradress:9000/material/?cmd=xxx
            Many thanks for your support
            Yes, you can specify the theme on the URL. e.g.:

            Code:
            http://SERVER:9000/material/?theme=dark
            http://SERVER:9000/material/?theme=light
            http://SERVER:9000/material/?theme=darker
            http://SERVER:9000/material/?theme=black
            http://SERVER:9000/material/?theme=dark-colored
            http://SERVER:9000/material/?theme=light-colored
            http://SERVER:9000/material/?theme=darker-colored
            http://SERVER:9000/material/?theme=black-colored
            http://SERVER:9000/material/?theme=windows/dark/Windows-10-Dark
            http://SERVER:9000/material/?theme=linux/dark/Adwaita-Dark
            You can also specify the colour to be used:
            Code:
            http://SERVER:9000/material/?theme=light,purple
            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.

            Comment


            • Display Material Skin on a Google Home/Nest device

              I have a Google home/nest hub device sat right next to my hi-fi set up. Does anyone know how I can get it to browse to my material player at http://192.168.0.5:9000/material/

              I know it has a browser on the device, but you can't just load it, you have to somehow navigate to it with your voice. And even if I do, is there a way to "bookmark" it so I can get back to it again?

              Comment


              • I seem to remember a while back there was an issue with multi CD albums. I think I've found another one. If I select the first track of the second CD and try to "play album starting at track" playback starts from the second track. Selecting "play now" works OK. I think this only affects the first track of the second CD as selecting the first track of the first CD works properly and selecting the second track of the second CD also works properly. Having tried a three CD set it also affects the first and second track of the third CD.

                Sent from my Pixel 3a using Tapatalk
                Living Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
                Bedroom: Radio
                Bathroom: Radio

                Comment


                • Originally posted by slartibartfast
                  I seem to remember a while back there was an issue with multi CD albums. I think I've found another one. If I select the first track of the second CD and try to "play album starting at track" playback starts from the second track. Selecting "play now" works OK. I think this only affects the first track of the second CD as selecting the first track of the first CD works properly and selecting the second track of the second CD also works properly. Having tried a three CD set it also affects the first and second track of the third CD.

                  Sent from my Pixel 3a using Tapatalk
                  Yeah, really stupid coding error! Will be fixed in next release, thanks for reporting.
                  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.

                  Comment


                  • Originally posted by rincage
                    I have a Google home/nest hub device sat right next to my hi-fi set up. Does anyone know how I can get it to browse to my material player at http://192.168.0.5:9000/material/

                    I know it has a browser on the device, but you can't just load it, you have to somehow navigate to it with your voice. And even if I do, is there a way to "bookmark" it so I can get back to it again?
                    Seems that there's no way to set a default start page or bookmark.
                    ------------------------------------------------------------------------------------

                    Comment


                    • Originally posted by rincage
                      I have a Google home/nest hub device sat right next to my hi-fi set up. Does anyone know how I can get it to browse to my material player at http://192.168.0.5:9000/material/

                      I know it has a browser on the device, but you can't just load it, you have to somehow navigate to it with your voice. And even if I do, is there a way to "bookmark" it so I can get back to it again?
                      This might help


                      Sent from my Pixel 3a using Tapatalk
                      Living Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
                      Bedroom: Radio
                      Bathroom: Radio

                      Comment


                      • Got it working on Echo Show via Silk browser... opens at last viewed page.
                        ------------------------------------------------------------------------------------

                        Comment


                        • Play Podcast Episodes In Order

                          This was asked in another new thread https://forums.slimdevices.com/showt...31#post1037831 and I know how to do 99% of it in material. stuck on the 1%. It's something I'd like to know how to do too.

                          The question is to be able to initiate play of multiple episodes of podcasts in order. When a subscribed thread is loaded, it is loaded recent on top, oldest on the bottom, so (where S is Season and E is episode)

                          S3 E3
                          S3 E2
                          S3 E1
                          S2 E3
                          S2 E2
                          S2 E1
                          S1 E3
                          etc.
                          The question is how to play S1 E1 -> S3 E3.

                          In material I am able to select the subscription to list the episodes, select say S3 E3, then shift select S1 E1, selecting them all, then add to the queue. Viola, except the order in the queue remains the same, last is first. Any easy way to flip it? I can drag and drop, and that's probably fine for, say a seasons worth....

                          Or, is there an easy way to do this and I am trying to figure out how to make a harder way?

                          Jim

                          Comment


                          • Originally posted by Redrum
                            The question is how to play S1 E1 -> S3 E3.
                            I guess what is required is way to sort podcast episodes; latest first, or oldest first. Perhaps this could be a configuration setting of the Podcast plugin? That way it would be the same for all UIs.

                            I could add a sort option for Material, but I would need a way to know the current list is a list of podcast episodes. I don't personally use podcasts, but will give this some thought.
                            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.

                            Comment


                            • Originally posted by cpd73
                              I guess what is required is way to sort podcast episodes; latest first, or oldest first. Perhaps this could be a configuration setting of the Podcast plugin? That way it would be the same for all UIs.

                              I could add a sort option for Material, but I would need a way to know the current list is a list of podcast episodes. I don't personally use podcasts, but will give this some thought.
                              I didn't see anything in the podcast plugin settings, but maybe that is a more appropriate place to address any proposed changes. For Material, I was thinking of a "swap queue order" button, that is made visible when you make a selection in the queue (like the "remove from queue" button) but it feels like a hack (although an elegant one...) so it's not a request.

                              I have subscribed to a new podcast that has had multiple seasons, so alot of time there is 50+ episodes in the list. I think my brain, and the other poster thought how can I play they bottom up? The reality though is, do you really need to add 50+ episodes, 50+hours to the queue? So, I am thinking if there is, say 10 in a season, add them to the queue (or build a playlist), drag and drop to reorder, done. Next season, do the same.

                              Craig, btw, I think I ran into something that might be intentional, or might not be. Its very ticky tacky, so just noting it, not expecting you to care

                              To recreate (on PC) - In the list of episodes, or tracks, if click an item, pulldown->select, item is selected. You then go to select a range, go to another item, say 10 items away, then hold down control <by mistake> and click the item, it selects both, as it should. But you realize you wanted shift, so you unclick the second, then hold down shift, click the second, and it behaves like control. You have to unselect both the first and the second, then do it over with shift before it behaves as expected.

                              To summarize, if you select a range and make a mistake by either holding down control, or just clicking a second item, you have to unselect all items before you can select a range with the shift key. You can't keep the first selected.

                              Jim
                              Last edited by Redrum; 2021-11-10, 21:13. Reason: removed second "Jim" :)

                              Comment


                              • Originally posted by Redrum
                                To recreate (on PC) - In the list of episodes, or tracks, if click an item, pulldown->select, item is selected. You then go to select a range, go to another item, say 10 items away, then hold down control <by mistake> and click the item, it selects both, as it should. But you realize you wanted shift, so you unclick the second, then hold down shift, click the second, and it behaves like control. You have to unselect both the first and the second, then do it over with shift before it behaves as expected.
                                When you select an item material remembers its index, and when you shift+select the next it selects from this previous to new index. When you unselect an item the remebered index is forgotten. The only way to work-around that would be to remember the order of selected items.

                                I guess I could make ctrl+select the same as shift+select? This would be different to how (e.g.) windows handles select, but then Material is already different (by not needing ctrl+select to select an item if another is selected).

                                [Edit] For the next release I have made ctrl+select the same as shift+select.
                                Last edited by cpd73; 2021-11-11, 12:07.
                                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.

                                Comment

                                Working...
                                X
                                😀
                                🥰
                                🤢
                                😎
                                😡
                                👍
                                👎