Announcement

Collapse
No announcement yet.

Announce: Material Skin

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Material skin and Android full screen problem

    Hello Craig,
    I had to re-install Material Skin (Actual Version 2.6.2) with Kiwi browser on my Pixel 5 with Android 11, September Patch, LMS Version: 8.2.1 - 1630708436 and now have problems to focus the touch inputs,
    beause the screen scrolls away up or down when I touch it. I got the same problem with Chrome browser.. It seems this is a problem with the Android update because with two older Android versions (Version 9) and even older CyanogenOS everything works fine.

    Is there something I can do or is this a Android bug?

    Thanks in advance!

    Björn

    OS: Debian (Docker) - DE - utf8 / Platform: x86_64-linux / Perl-Version: 5.32.1 - x86_64-linux-gnu-thread-multi / Audio::Scan: 1.02 / IO::Socket::SSL: 2.069 / Database: DBD::SQLite 1.58 (sqlite 3.22.0)

    Comment


    • Originally posted by Tapaballou
      Hello Craig,
      I had to re-install Material Skin (Actual Version 2.6.2) with Kiwi browser on my Pixel 5 with Android 11, September Patch, LMS Version: 8.2.1 - 1630708436 and now have problems to focus the touch inputs,
      beause the screen scrolls away up or down when I touch it. I got the same problem with Chrome browser.. It seems this is a problem with the Android update because with two older Android versions (Version 9) and even older CyanogenOS everything works fine.

      Is there something I can do or is this a Android bug?
      Is this runnnig after the app has been added to homescreen? Try editing material.manifest and change the "display" setting to "standalone" (this will be the default in 2.6.3) You can find material.manifest in the "MaterialSkin/HTML/material/html" folder wihing your LMS's plugins folder.

      [Edit] Also, as a work-around you can use the Material APK (search for LMS on f-droid, or CORE32 on google play). This is a simple WebView wrapper that adds a few extras (such as server auto-disover, hardware volume keys, etc).
      Last edited by cpd73; 2021-09-10, 08:56.
      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
        Is this runnnig after the app has been added to homescreen? Try editing material.manifest and change the "display" setting to "standalone" (this will be the default in 2.6.3) You can find material.manifest in the "MaterialSkin/HTML/material/html" folder wihing your LMS's plugins folder.

        [Edit] Also, as a work-around you can use the Material APK (search for LMS on f-droid, or CORE32 on google play). This is a simple WebView wrapper that adds a few extras (such as server auto-disover, hardware volume keys, etc).
        Thanks Craig, for your fast reply! Editing the material.manifest was my solution. Good to hear, that this setting will be standard in Version 2.6.3!

        Comment


        • 2.6.3 Release

          Bug-fix release, main changes:
          1. Fix parsing of BBC Sounds error response.
          2. Revert webapp manifest back to "standalone" as some users report issues with "fullscreen"
          3. Use composer, conductor, band, etc, in window titlebar as per elsewhere.
          4. Fix incorrectly treating LMS icon strings as Material icons.
          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


          • Would it be possible to add dynamic playlist as an option when you press the "3 dot" menu for album artists and genres? Currently you must press the 3 dots > more > dynamic playlists. Which is fine for me but the wife and kids seem to forget it even exists and the dynamic playlist never get used.

            Example would be... Album artist selected artist "3 dot" menu > dynamic playlist.

            Of course a better way would be to show the appropriate random playlist in the top level but that seems like it would be more difficult.

            Thanks

            Comment


            • Originally posted by shinedou
              Would it be possible to add dynamic playlist as an option when you press the "3 dot" menu for album artists and genres? Currently you must press the 3 dots > more > dynamic playlists. Which is fine for me but the wife and kids seem to forget it even exists and the dynamic playlist never get used.

              Example would be... Album artist selected artist "3 dot" menu > dynamic playlist.

              Of course a better way would be to show the appropriate random playlist in the top level but that seems like it would be more difficult.

              Thanks
              Hmmm... Not sure. There's already quite a few entries in this menu. Plus I'd have to check DPL is installed, etc. Not a plugin I personally use. Not sure about giving prominence to this over other actions.
              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
                Hmmm... Not sure. There's already quite a few entries in this menu. Plus I'd have to check DPL is installed, etc. Not a plugin I personally use. Not sure about giving prominence to this over other actions.
                if it's not something you think you want to add is there a way I could move that section from more to the top level menu in the code? If so, could you print me in the right direction? Thanks.

                Comment


                • Originally posted by shinedou
                  if it's not something you think you want to add is there a way I could move that section from more to the top level menu in the code? If so, could you print me in the right direction? Thanks.
                  What I'm thinking of doing is extending Material's custom actions code to allow adding entries to the "(...)" button at the top of an artist's album list, or an album's track list. This way you could add whatever entries you like there.
                  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
                    What I'm thinking of doing is extending Material's custom actions code to allow adding entries to the "(...)" button at the top of an artist's album list, or an album's track list. This way you could add whatever entries you like there.
                    This would be an awesome addition if you do. Thanks for the consideration. One note on this idea; could you also consider this for the "genres" section as well?

                    Comment


                    • Originally posted by shinedou
                      This would be an awesome addition if you do. Thanks for the consideration. One note on this idea; could you also consider this for the "genres" section as well?
                      Implemented for artists, albums, genres, and years.

                      [Edit] This is for 2.7.0
                      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
                        Implemented for artists, albums, genres, and years.

                        [Edit] This is for 2.7.0
                        I look forward to trying it out. Thanks

                        Comment


                        • What would be the right way to get an icon that is held within the plugin folders to appear in Material?
                          I know about the svg_png stuff but in this case I have an icon for something lower down in the menu and I do not currently have an svg for it.

                          I tried specifying it as
                          /plugins/PluginName/html/filename.png
                          without any http stuff on the front.
                          That works in default skin - but in Material it results in a generic 404 radio mast icon.

                          I can see it is trying for the right file - but with _300x300_f added before the final dot
                          Presumably this is requesting LMS to perform some image transformation.
                          If I take out the _300x300_f and use the URL in my browser then it works fine.
                          Paul Webster
                          Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
                          and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

                          Comment


                          • Originally posted by Paul Webster
                            What would be the right way to get an icon that is held within the plugin folders to appear in Material?
                            I know about the svg_png stuff but in this case I have an icon for something lower down in the menu and I do not currently have an svg for it.

                            I tried specifying it as
                            /plugins/PluginName/html/filename.png
                            without any http stuff on the front.
                            That works in default skin - but in Material it results in a generic 404 radio mast icon.

                            I can see it is trying for the right file - but with _300x300_f added before the final dot
                            Presumably this is requesting LMS to perform some image transformation.
                            If I take out the _300x300_f and use the URL in my browser then it works fine.
                            You can pick one of Materials own icons by naming the png file to a convention. You need to put _MTL_icon_[name] somwhere in the file name. e.g. naming your png "paulsfile_MTL_icon_radio.png" would show the radio icon in material instead of the png.

                            For a list of material icons you can choose look here : https://fonts.google.com/icons

                            [EDIT]
                            Having reread your post, I realise I didn't quite answer the question you asked. There is probably something odd in your filename as to why the resize is not working. But anyway, my tip above is useful for mapping a png to a smart Material svg icon without having to provide the svg. And it would indirectly solve your problem :-)
                            Last edited by expectingtofly; 2021-09-16, 18:17.
                            Stuart McLean

                            ExpectingToFly Plugins :
                            BBC Sounds, Global Player (UK), Times Radio, UK Radio Player, Virgin Radio (UK) and the Radio Favourites Plugin

                            For BBC Sounds help see the BBC Sounds Wiki.

                            Comment


                            • The icon in question in this case is a radio station logo.
                              Usually I link to the logo on the broadcaster's site ... but in this particular case it is not practical.
                              So I have made my own and stored it alongside the plugin icon.
                              Last edited by Paul Webster; 2021-09-16, 19:04.
                              Paul Webster
                              Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
                              and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

                              Comment


                              • Originally posted by Paul Webster
                                The icon in question in this case is a radio station logo.
                                Usually I link to the logo on the broadcaster's site ... but in this particular case it is not practical.
                                So I have made my own and stored it alongside the plugin icon.
                                Ah, I see, then my reply was particularly not relevant. I think I've seen that problem you describe when there is more than one "." in the file name, the resizer appends the file size in the wrong place.
                                Stuart McLean

                                ExpectingToFly Plugins :
                                BBC Sounds, Global Player (UK), Times Radio, UK Radio Player, Virgin Radio (UK) and the Radio Favourites Plugin

                                For BBC Sounds help see the BBC Sounds Wiki.

                                Comment

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