roc-streaming / roc-droid

Roc for Android!
https://roc-streaming.org
Mozilla Public License 2.0
77 stars 22 forks source link

Android TV support ? #23

Open stuaxo opened 2 years ago

stuaxo commented 2 years ago

Has anybody tried this on Android TV ? Currently I stream pulseaudio-dlna but ROC seems like a better option.

The main issues that come up tend to be: ensuring an icon can appear on the TV homescreen (these are a bit different to the ones on phones and tablets).

Adjusting the manifest so Google Play knows this works on TVs.

Ensuring the UI works sensibly with cursor keys and enter (on a remote this is the up/down/left/right and the OK button), there is also a back button.

gavv commented 1 year ago

As for me, unfortunately I don't have device to test, so I have no idea.

stuaxo commented 1 year ago

I'm willing to test.

For the UI part, make sure the app is in landscape mode, then try and navigate in the android emulator (or with a usb keyboard attached to a real phone) - only using cursor keys and and OK / cancel (enter / esc).

gavv commented 1 year ago

make sure the app is in landscape mode

This part should be now fixed by https://github.com/roc-streaming/roc-droid/pull/42

then try and navigate in the android emulator (or with a usb keyboard attached to a real phone) - only using cursor keys and and OK / cancel (enter / esc).

This part still needs a fix.

stuaxo commented 1 year ago

Nice :)

The app, also needs a couple of bits in the manifest to things to appear as a TV app in the launcher (details from https://developer.android.com/training/tv/start/start.html)

Even without these it's possible to sideload it + test - I'll try and make some time to do so.

Fire- commented 1 year ago

So I sideloaded it onto my nvidia shield and it Just Works, with the small exception of not being able to select / change target IP or press the start Sender button using a remote - using a trackpad ( virtual like the SHIELD app or manual ) worked fine, however.

The biggest downsides to this so far are the lack of ability to compensate for the ( very noticeable ) amount of latency ( compared to a bluetooth sound device's latency for which the system seems to automatically compensate during video playback ), and the requirement for a sender to target a receiver ( I'd love the choice to be a "host" that one or more receiving clients can simply listen to )

Fantastic work so far, this is as close as I've ever seen to a true wifi audio solution that actually works FROM android