segler-alex / RadioDroid

radio browser app that uses www.radio-browser.info on android
GNU General Public License v3.0
753 stars 155 forks source link

[Suggestion] Play/Pause according to external USB power status #506

Open Wikinaut opened 5 years ago

Wikinaut commented 5 years ago

I use older phones as Internet Radios and wish to

Goal: reduce data transmission in my network for Internet Radios which power is switched off.

Implementation hint: I found this information "Is there an easy way to be notified when USB or AC power is connected to an Android phone?" https://stackoverflow.com/questions/3267161/how-to-detect-power-connected-state

morckx commented 5 years ago

I use older phones as Internet Radios and wish to

Interesting! That's also one of my application scenarios. Do you also have them wall-mounted? My personal "kitchen radio edition" has, besides much larger play/pause buttons, also a switch off button that pauses and turns off the display (requires root). For that application I also needed the "icon only" favorites view.

  • stop/resume the data transmission (playing a station) when the external power connection (USB) is switched off/on.

Goal: reduce data transmission in my network for Internet Radios which power is switched off.

Implementation hint: I found this information "Is there an easy way to be notified when USB or AC power is connected to an Android phone?" https://stackoverflow.com/questions/3267161/how-to-detect-power-connected-state

I wonder for how many more users such a "wall-radio" mode would be interesting.

Wikinaut commented 5 years ago

@morckx I already filed here a few other ideas, can I install your "kitchen radio edition", is this a new branch, or only ideas you had?

here's my wish list:

Pls. ask me if you need details.

zo-shin commented 5 years ago

I hope wall-radio mode supports the remote control, so the app can run on a set-top box.

morckx commented 5 years ago

@morckx I already filed here a few other ideas, can I install your "kitchen radio edition", is this a new branch, or only ideas you had?

So far I've only used it personally (there are no settings to switch between modes, so it's kitchen mode only and the off button requires root):

https://github.com/morckx/RadioDroid/tree/wall-radio

kitchen-mode

here's my wish list:

  • big square buttons for 4..8 stations (dividing the whole screen into button-tiles)

That's something we already have: dd12866cdb38e36be846434e96325e291994a27b

  • two buttons reserved for volume +/- ; or

Yes, that wouldn't be bad.

  • like Videolan/VLC has: wiping up/down to control the volume

Would be nice, but then the favorites couldn't be scrolled anymore.

  • allow to create quick launch icons on the android homescreen which starts the station which was played when the quick launch icon was created

Yes, the possibility to add widgets for favorite stations should be quite useful and easy to implement.

Pls. ask me if you need details.

morckx commented 5 years ago

I hope wall-radio mode supports the remote control, so the app can run on a set-top box.

Doesn't everything already work with a Bluetooth remote control?

zo-shin commented 5 years ago

I mean the TV remote control, not a bluetooth one. If I run the app on a set-top box, some of the icons can't be clicked because it's not specially designed for Android TV, but another app with a simple UI works well on the set-top box.