New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Play feature is broken in Non Root access on termux in Android env. #124
Comments
After looking at the error messges and a bit of googling, I can say that this is a psutil issue combined with the fact that your device is not rooted. For example, have a look at this: aristocratos/bpytop#144 Since you do have playback (even for a few seconds) there may be a way to bypass this, if I can pin-point what triggers psutil.
and post the file produced (~/pyradio.log) Thisis a long shot, but, hey, might as well try before we give it up! |
I play a station that lasts about 4 seconds then fails and I exit I'm thinking the bypass is somewhere around this finally clause: Line 626 in 130ccad
|
If anything inside Line 617 in 130ccad
mpv (communication through a socket). Changing anything in there, will probably render the player unusable.
BTW, can you try using mplayer ( |
Unfortunately vlc (installed from app store) is not accessible from command line ($ vlc) so pyradio wouldn't be able to call it. mpv works fine I know you're not targeting android with pyradio but the closest to getting something working officially would be using this Simple Protocol Player method. You've guarded user inputs in the config files well, I tried to break connection_timeout high and low but it constrains it back to default. I've stripped out the lines for the timeout counter to activate in player.py ln1126-ln1137 |
Wow! |
BTW, If you do post a tutorial or guide or something about how you did this, please do send us a link. It would be really interesting! |
I'm using a non-rooted android device with termux.
Surprisingly I was able to build PyRadio from source, however upon selecting a station I get roughly 5 seconds of audio and I receive a KeyError & Permission error on /proc directory.
PyRadio clearly is working however fundamentally does not work with my environment.
For me to make this change I would allow the user to decide if a stream is indeed playing and continue playing it versus what appears to be happening is pyradio checks with /proc to see if the stream is healthy in some way and KeyError on that check... Since I'm building from source this may be a easy adjustment.
The text was updated successfully, but these errors were encountered: