roc-droid icon indicating copy to clipboard operation
roc-droid copied to clipboard

Android TV support ?

Open stuaxo opened this issue 4 years ago • 5 comments

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.

stuaxo avatar Nov 03 '21 22:11 stuaxo

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

gavv avatar Nov 29 '22 11:11 gavv

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).

stuaxo avatar Nov 29 '22 12:11 stuaxo

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.

gavv avatar Feb 05 '23 14:02 gavv

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)

  • Add the LEANBACK_LAUNCHER intent category
  • Make the feature android.software.leanback not required (so it still works on non tv devices).
  • Make android.hardware.touchscreen not required
  • Add an android:banner (an xhdpi App icon 320x180px, "Test Must be included in the image").

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

stuaxo avatar Feb 07 '23 01:02 stuaxo

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

Fire- avatar Jun 23 '23 19:06 Fire-