Skip to content
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

there is no advice/hint/guide how this remote control feature works #1847

Open
1 task done
lhpitn opened this issue Sep 5, 2024 · 3 comments
Open
1 task done

there is no advice/hint/guide how this remote control feature works #1847

lhpitn opened this issue Sep 5, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@lhpitn
Copy link

lhpitn commented Sep 5, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

in the settings there is some ominous on of switch labeld something like "enable connection -control spotube from another device" (translated back from german) that i can switch on but i dont know what it dose, before i know what it dose i switched it back to the off postion but it is not how i like an intuitive ui

Expected Behavior

some hint to the help me understand what interface is opened and how to use it, if it is just open for everybody or i have to whitelist devices on connect, also some port would be helpful in case i have a firewall

Steps to reproduce

open the app, go to settings scroll down,

Operating System

Android 13

Spotube version

v3.8.0 build 33 stable

Installation source

GitHub Releases (Binary)

Additional information

the ui is in general better looking then working, much testing has to be done on different display sizes and live devices with uptimes bigger then 7 days that run a lot of apps on that cupple of ram anandroid has ... sometimes i get some obscure sesion login error and have to kill the whole app using device settings menu (its a hazzle to find the app everytime in the list) to get it back to work, maybe just detect and relog souch states by your own using a little service health check/ control/restart thread...

Self grab

@lhpitn lhpitn added the bug Something isn't working label Sep 5, 2024
@andrea3x
Copy link

andrea3x commented Sep 7, 2024

I am also interested in this.
I would like to control Spotube remotely from a script, but I need to know how it works, how to connect to the server, and what API calls I should make.
If anyone can explain it to me, I will be very happy to read it.
Thanks!

@KRTirtho
Copy link
Owner

Yeah I probably should write proper docs for it in the Wiki section.

But briefly, it's just a server running on 0.0.0.0:<random port> which discoverable via avahi(zeroconf) as _spotube.tcp type. It also shares 2 attributes id and deviceId

The app uses WebSockets at ws://0.0.0.0:port/ws endpoint to communicate bidirectionally.

You can see the events and actions at:
https://github.com/krtirtho/spotube/blob/86ee64c6066b3aa3c5910c89ffff7367826e823c/lib/provider/server/routes/connect.dart

@KRTirtho KRTirtho added enhancement New feature or request documentation Improvements or additions to documentation and removed bug Something isn't working labels Sep 15, 2024
@andrea3x
Copy link

andrea3x commented Sep 15, 2024

Thank you! I managed to connect to Spotube server and did some tests.
After reading the code, I've understood the basics of how you designed the server.
So I'm available to write a draft for the wiki if you need help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants