Announcement

Collapse
No announcement yet.

Android Squeezelite

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • gorman
    replied
    Works great with this https://f-droid.org/it/packages/com....smaterial.app/
    Which allows to start and stop squeezelite.

    Leave a comment:


  • RobbH
    replied
    Originally posted by harrys
    just retried and its working fine now, must have been a glitch...
    ....
    Great that it's working for you!

    Leave a comment:


  • harrys
    replied
    Originally posted by RobbH
    How did you install Termux?
    just retried and its working fine now, must have been a glitch...

    PS

    Have just installed tailscale (overlay) vpn on my lms server and on my phone, easiest/simplest vpn ever!

    Can now fire up squeezer on my phone, run squeezelite and listen away anywhere

    Leave a comment:


  • RobbH
    replied
    Originally posted by harrys
    hi, getting signed errors for repository when trying to download squeezelite on to my motorola droid

    any ideas why please?
    How did you install Termux?

    Leave a comment:


  • harrys
    replied
    repository issue...

    hi, getting signed errors for repository when trying to download squeezelite on to my motorola droid

    any ideas why please?

    Leave a comment:


  • Ron F.
    replied
    Termux/Squeezelite MAC Address

    I turns out that at least on my Android phone, starting Squeezelite in Termux was resulting in LMS registering the player with an Eth MAC addr of 00:00:00:00:00:00. This seemed to work fine for weeks until today, when it failed to work at all ... I think I have multiple devices on my LAN with a MAC of all zeros. Anyway, the solution was simple, simply start Squeezelite with a nonzero MAC, choose a MAC that will be unique for your LAN, or use your Android phone's actual MAC addr which can be gotten from "About phone" under Settings.

    squeezelite -n Termux -m ab:cd:ef:12:34:56 ...

    Posting in case anybody else is/was temporarily flummoxed by this situation ... possibly it was just me.

    Leave a comment:


  • Ron F.
    replied
    This is really cool. I did not know about Termux, installed it from F-Droid, installed dropbear so I can ssh into Termux from my laptop, installed Squeezelite after that. It works! Impressive. The only output option however is to use OpenSL_ES_sink; maybe there are other options possible on a rooted phone. It would be even more useful if it were possible to use pulseaudio somehow, to output directly to a connected USB DAC. Both Neutron and USB Audio Player PRO can do this, but require UPnP for streaming from LMS.

    The other cool thing, is that my VPN is accessible in Termux! I sure had fun playing with this over the past weekend; pkill can be used to kill Squeezelite, or just exit Termux.
    Last edited by Ron F.; 2022-02-01, 08:30.

    Leave a comment:


  • RobbH
    replied
    Originally posted by nenu
    using Termux:Widget and defining it as a 'task'. Which works well to start squeezelite, just not to stop it
    Sorry, I am not familiar with the widget. It appears that this version of squeezelite supports the -P option, so it may be that you can write its PID to a file and use that to kill it. I haven't tried it, so no guarantees, but maybe worth a try.

    I've just skimmed through the github page without close reading, but it appears to me that you have the option of running scripts in the foreground in a terminal. If you did that, ctrl-c should work.

    Leave a comment:


  • nenu
    replied
    Originally posted by RobbH
    Scroll down to "How can I access device storage with Termux"

    Indeed, should have RTFM. It's not just giving Termux permission to use the storage, you need to run a command as well: https://wiki.termux.com/wiki/Interna...ternal_storage

    What do you mean by running it as a "task"? Are you daemonizing it? I found it worked as Wiredcharlie (Tony) specified in the first post, just entering the command "squeezelite -s <IP of LMS>". When done, use ctrl-c to kill it.
    using Termux:Widget and defining it as a 'task'. Which works well to start squeezelite, just not to stop it

    Leave a comment:


  • RobbH
    replied
    Originally posted by nenu
    That works pretty well!

    But I have 2 questions:
    1. is there anywhere/anyway that the filesystem in termux intersects with the one of Android? That would make it easier to transfer some files back and forth.
    I haven't tested myself, but this is explained in the FAQ: https://wiki.termux.com/wiki/FAQ

    Scroll down to "How can I access device storage with Termux"

    2. when I run squeezelite as a 'task', and then exit the task, squeezelite keeps running. And I can't find how/where to kill it. Is there anywhere I can see this and kill the process?

    Thanks!
    What do you mean by running it as a "task"? Are you daemonizing it? I found it worked as Wiredcharlie (Tony) specified in the first post, just entering the command "squeezelite -s <IP of LMS>". When done, use ctrl-c to kill it.

    Leave a comment:


  • nenu
    replied
    That works pretty well!

    But I have 2 questions:
    1. is there anywhere/anyway that the filesystem in termux intersects with the one of Android? That would make it easier to transfer some files back and forth.

    2. when I run squeezelite as a 'task', and then exit the task, squeezelite keeps running. And I can't find how/where to kill it. Is there anywhere I can see this and kill the process?

    Thanks!

    Leave a comment:


  • RobbH
    replied
    Originally posted by Wiredcharlie
    I used the Play Store version and pkg could not find squeezelite, hence the instruction to use apt.
    Yes, I assumed it must have worked for you, but I couldn't get the apt commands to work in the current version. But I just checked and they seem to be working now. Anyway, the Play Store version hasn't been updated since September, 2020. The version on F-Droid was updated two weeks ago.

    Leave a comment:


  • Wiredcharlie
    replied
    Also, Termux uses pkg commands instead of apt and apt-get. If the apt commands don't work for you, try pkg update, followed by pkg install squeezelite. That's what worked for me.
    I used the Play Store version and pkg could not find squeezelite, hence the instruction to use apt.

    Leave a comment:


  • RobbH
    replied
    Many thanks for posting this! This is very good news for anyone who has wanted to use an Android device as a player, without having access to the Google Play Store. I'll stick with SB Player on my phone, but I also have a few Android tablets and old phones that don't have access to the Play Store, and this is just what they have needed. The catch is that Termux only supports Android 7 and above, so some old devices will miss out.

    I just tried this on my current phone, and it works.

    Now, a few quibbles.

    The Termux readme at https://github.com/termux/termux-app#installation says,
    Termux and its plugins are no longer updated on Google Play Store due to android 10 issues and have been deprecated. The last version released for Android >= 7 was v0.101. It is highly recommended to not install Termux apps from Play Store any more.
    Current options are to install from F-Droid or Github, and directions are given at the URL posted above.

    Additionally, there was a change in Termux package management in May of 2021. Existing installations of Termux that have not already updated to the new package management mirrors since then will need to be updated before they can install Squeezelite. Details are at https://github.com/termux/termux-pac...age-Management .

    Also, Termux uses pkg commands instead of apt and apt-get. If the apt commands don't work for you, try pkg update, followed by pkg install squeezelite. That's what worked for me.

    One more thing: I like Hacker's Keyboard, but I usually prefer AnySoft keyboard with the SSH language pack. It also provides access to all ctrl and alt key combinations. However, Termux provides access to most of the extra keys you need, so it may not be necessary to switch away from your preferred keyboard.

    Enough quibbles! The important thing is that squeezelite is now available for many Android devices.
    Last edited by RobbH; 2022-10-31, 16:28. Reason: minor but crucial grammatical error. Install Termux from F-Droid OR Github!

    Leave a comment:


  • Wiredcharlie
    started a topic Android Squeezelite

    Android Squeezelite

    Install Termux


    Install Hackers Keyboard to provide CTRL key


    In Termux:

    apt-get update

    apt install squeezelite

    Better if you provide ip of server:

    eg
    squeezelite -s 192.168.1.100

    CTRL c to to exit


    For command line options:
    squeezelite --help

    Hope this is useful!
    Tony
Working...
X
😀
🥰
🤢
😎
😡
👍
👎