Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 9 of 9
  1. #1
    Junior Member
    Join Date
    May 2021
    Posts
    6

    Announce: LMS Connect - streaming Tidal/Qobuz to LMS via native Android apps

    Have been using LMS(Logitech Media Server) + Tidal/Qobuz plugins to stream Tidal/Qobuz, however, still prefer to use native Tidal/Qobuz apps to explore musics Inspired by the way how the android Kodi control apps streaming Youtube video to Kodi, developed this little android app which can stream Tidal/Qobuz to LMS via the native Tidal/Qobuz Android apps.

    Of course, this is not an official “Tidal Connect” or “Qobuz Connect”, but a diy workaround. In short , here is how it works: In the android Tidal/Qobuz app, find any track, album or playlist, share it to this “LMS_Connect” app, then the music will be streamed to LMS.

    Prerequisite:
    LMS with Tidal or Qobuz plugin(s) installed.
    An Android device (phone or tablet) with Native Tidal or Qobuz app(s) installed.
    The Android device and LMS server are in the same network.

    Installation and set up instruction:
    Note: this app doesn’t require any permission and doesn’t need your Tidal or Qobuz user info as they are all set up in LMS.
    1. In your Android device, use a web browser to download and install the “LMS_Connect” app:
    https://drive.google.com/file/d/1XtF...ew?usp=sharing

    (As other apps from "unknown source, some warnings will be shown during the installation)

    2. Run the “LMS_Connect” app to set up your LUMS connection. Just fill in the LMS server ip address (ip address only, not host name) and leave other 2 values as is unless you know what to set. Then press “Retrieve player data from server” button, if everything goes right, all the LMS players should be listed.

    3. Tap the player you want to stream the music to (still need to tap once even just have one player), then the header of the list view above should state the which player is chosen.

    4. Then the app can be closed.

    5. Open the Tidal or Qobuz app, find a track, an album or a playlist, then "share" to either "Play on LMS" or "Queue on LMS".

    [23 May 2021 - update v1.1]
    - LMS server auto discovery is available.
    - Can share from Facebook app directly. (e.g. If you see someone shares an Tidal album in Facebook, you can stream the album to LMS directly from Facebook app)

    [24 May 2021 - update v1.2]
    -Bug fix: sometime the app resets the current player to the first listed player.

    link: https://drive.google.com/file/d/1XtF...ew?usp=sharing

    Name:  Screenshot (23 May 2021 12_29_35 pm).jpg
Views: 151
Size:  45.9 KBName:  Screenshot_20210520-184210.jpg
Views: 151
Size:  91.1 KB
    Last edited by RCST; 2021-05-24 at 03:52.

  2. #2
    Senior Member
    Join Date
    Mar 2017
    Posts
    3,018

    Auto-discover server

    Instead of having the user fill in the LMS connection details, you could automatically discover LMS servers - and then automatically retrieve the list of players. My WebView wrapper for Material skin does this auto-discover, and its quite simple see: https://github.com/CDrummond/lms-mat...Discovery.java
    Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.

  3. #3
    Junior Member
    Join Date
    May 2021
    Posts
    6
    Thanks for the tips! Auto server discovery is the next to do but it's my first mobile app, just try to make it work first.

    By the way, your Material skin is great, love it!

  4. #4
    Senior Member
    Join Date
    Jul 2020
    Posts
    271
    Quote Originally Posted by RCST View Post
    Thanks for the tips! Auto server discovery is the next to do but it's my first mobile app, just try to make it work first.
    Thanks for developing and sharing this. Works great on my /e/os phone as well.

    I also agree that auto discovery would be a nice feature to have.

  5. #5
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,586

    Announce: LMS Connect - streamingTidal/Qobuz to LMS via native Android apps

    > Have been using LMS(Logitech Media Server) + Tidal/Qobuz plugins to
    > stream Tidal/Qobuz, however, still prefer to use native Tidal/Qobuz apps
    > to explore musics Inspired by the way how the android Kodi control apps
    > streaming Youtube video to Kodi, developed this little android app which
    > can stream Tidal/Qobuz to LMS via the native Tidal/Qobuz Android apps.


    Nice! Can you share some information about how this is implemented
    "under the hood"? I haven't found much useful information about what
    their implementation of a Connect mode is.

  6. #6
    Junior Member
    Join Date
    May 2021
    Posts
    6
    Quote Originally Posted by mherger View Post

    Nice! Can you share some information about how this is implemented
    "under the hood"? I haven't found much useful information about what
    their implementation of a Connect mode is.
    Sure, already plan to upload the code to Github and share, just need to clean the code a bit, currently looking pretty embarrass.

    The concept is very simple:
    - Register the Android app as "sharing targets" so that it will appear in the "share to" list,
    - Once the native Tidal/Qobuz app shares the album/playlis/track url (like this: https://tidal.com/track/181884677) to the app, the app gets the type(album, playlist or tack) and the id ("181884677" in the above example) based on the url,
    - The app reformats the type and id to the LMS Tidal/Qobuz accepted song url format and send it to the LMS jsonrpc either via "Playlist add" or Playlist play" commands. (e.g the Tidal accepted url format is: "wimp://181884677.flac", and the whole jsonrpc body looks like this: "{"id":1,"method":"slim.request","params":["b8:27:eb:8f:24:4b",["playlist","play","wimp://181884677.flac"]]}"

    So actually all the hard works are done in the Tidal & Qobuz LMS plugins!
    Last edited by RCST; 2021-05-21 at 00:13.

  7. #7
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,586

    Announce: LMS Connect - streamingTidal/Qobuz to LMS via native Android apps

    > The concept is very simple:
    > - Register the Android app as "sharing targets" so that it will appear
    > in the "share to" list,


    Ah, ok. So it's really implemented on the Android app level, not in the
    protocol those services use to discover speakers that might implement
    their Connect feature? Still a cool idea!

  8. #8
    Junior Member
    Join Date
    May 2021
    Posts
    6
    Quote Originally Posted by mherger View Post
    > The concept is very simple:
    > - Register the Android app as "sharing targets" so that it will appear
    > in the "share to" list,


    Ah, ok. So it's really implemented on the Android app level, not in the
    protocol those services use to discover speakers that might implement
    their Connect feature? Still a cool idea!
    Sorry, no, I don't anything about the official "Connect" protocols. I guess whoever knows must have signed a NDA, and I have been waiting for Tidal to implement the Tidal Connect in their desktop apps, but it seem this is not their priority at all.

  9. #9
    Junior Member
    Join Date
    Oct 2020
    Posts
    10
    Works great, Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •