Code Monkey home page Code Monkey logo

Comments (11)

chatziko avatar chatziko commented on June 18, 2024 7

WIth some minor troubles, I managed to make the snapcast client work on a Chromecast with Google TV. Here's how for anyone who's interested.

I first sideloaded the apk (found in the releases page):

adb connect <chromecast-IP>
adb install Snapcast_0.26.0.apk

The only problem after the installation is that the app won't show anywhere, not even in the full list of installed apps. But it is nevertheless installed, and can be launched with:

adb shell monkey -p de.badaix.snapcast -c android.intent.category.LAUNCHER 1

After this, everything works as expected, the app detects the server, and we just have to press the Play button (a bit tricky with the remote, we first need to focus the button, but it's doable). Then Chromecast appears in the list of snapcat clients and plays audio (even simultaneously with other apps).

Finally, we can select three dots / Settings / Auto start Snapclient. This way snapclient loads automatically on boot, and we never have to interact with the UI again (we can control the sound from any snapcast controller).

PS1. Of course, some proper support for Android TV would be hugely welcome. Since the main functionality is working, I guess it shouldn't be too hard.

PS2. Thanks for this awesome project!

from snapdroid.

badaix avatar badaix commented on June 18, 2024

please move this issue to snapdroid

from snapdroid.

 avatar commented on June 18, 2024

Oops, thanks for moving this.

from snapdroid.

koalajoe23 avatar koalajoe23 commented on June 18, 2024

Works with sideloaded APK on Nvidia shield TV!

from snapdroid.

cyberbix avatar cyberbix commented on June 18, 2024

Works well on FireTV, sideloaded via adblink. Had to give an extra delay of 100ms on my Philips TV.

from snapdroid.

foxy82 avatar foxy82 commented on June 18, 2024

This doesn't seem to work for playing audio when side loaded on to a Google TV dongle (https://store.google.com/gb/product/chromecast_google_tv?hl=en-GB) however I can see the list of clients.

When I hit play I get a constantly appearing/disappearing/reappearing message at the bottom of the screen that reads:
"Error in socket shutdown: Transport endpoint is not connected"

from snapdroid.

toffee avatar toffee commented on June 18, 2024

On my Philips TV (model PUS8505/12) with Android 9 installing snapcast (version 0.26.0.0) via sideloading is possible and is working. To access the Snapcast application you need to install from Google play a "Sideload Launcher" app.

Anyway, there are some caveats:

  • the navigation with remote control in the application is difficult (wasn't able to mute/unmute, set source, etc for displayed clients); No critical for me because I can use the snapcast web for this.
  • accessing the start/stop and three dots button is counter intuitive - need to press 2x fast (at first press the tooltip is displayed); Again, there is a workaround - no problem for me.
  • when the TV is put to stand-by (not power off, the server does not see this client as disconnected - no "onDisconnect: xxxxx-xxx" messages on snapserver log) the sound is stopped (normally, the TV is off) but when switch on the TV the client is displayed as started, unmuted but no sound is heard. You need to stop/start the client in order to get sound again. For me this is annoying and I would like to see this issue fixed.

from snapdroid.

XeOS1977 avatar XeOS1977 commented on June 18, 2024

First of.... a massive thanks for your work, entire house was running on snapcast a while back without a hitch in combination with Home Assistant. Unfortunately after the update of my Nvidia Shield to Android 11 the (Snapdroid) snapcast client became unavailable as an output source. The app is working and I can control other instances but no more sound on the surround system. Also purchased a new TV recently with Android TV (Android 11) as well. Same issue.
It would be awesome if we could use snapcast clients again on Android/Google TV again

from snapdroid.

jagjordi avatar jagjordi commented on June 18, 2024

I am also running snapdroid sideloaded on android TV. However I notice that when snapcast is playing the screensaver wont start. Have any of you noticed that? And any ideas on how to solve it?

from snapdroid.

jagjordi avatar jagjordi commented on June 18, 2024

My workarround as of now is to trigger screensaver through home assistant with an automation:

service: androidtv.adb_command
data:
  command: adb shell am start -n "com.android.systemui/.Somnambulator"
target:
  entity_id: media_player.android_tv

from snapdroid.

SantiagoSotoC avatar SantiagoSotoC commented on June 18, 2024

I have the project modified so it can be launched from android tv, I have to fix the banner and make it a pull request, most likely for tomorrow.
I know little about android development, we can go see the problems little by little.

from snapdroid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.