• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

How to use Spotify on Ubuntu Touch

Scheduled Pinned Locked Moved App Development
mopidyspotify ubuntuspotify
28 Posts 16 Posters 12.9k Views 6 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      stefwe
      last edited by 22 Jul 2019, 14:23

      Thank you for testing and reporting this. Maybe there is a way to display the available playlists and more in umpd. Must have a look at that.

      Meizu MX4 16.04 | Nexus 5 16.04

      1 Reply Last reply Reply Quote 0
      • H Offline
        hoogs
        last edited by hoogs 24 Jul 2019, 13:28

        Hi everybody!

        I would like to start by saying that I am grateful for this method of using Spotify on UBports, since making Spotify work was my greatest concern when switching from Android.

        I have one problem though: I can't seem to enable write privileges in Iris. By default, it only has read access to your Spotify playlists, etc. When I try to enable write access in Iris' settings it just doesn't work. I press "Log In" under "Authorization" in the settings, proceed to login with Spotify and then I just reach a white page. Has anyone been able to enable the setting?

        EDIT: I found a workaround! Installing the "Demo Browser" from the Open Store, using it to enable write privileges and then exporting the authorization from the Demo Browser Iris client to the Morph one (Iris settings > "Share configuration" > "Spotify authorization") I successfully enabled the write access πŸ™‚

        1 Reply Last reply Reply Quote 1
        • S Offline
          schouk @alefnode
          last edited by 25 Jul 2019, 05:42

          @hadrianweb thank you for this how-to. it works perfectly for me.

          I just like to mention that I had to install wget, too. And it is not needed to use ssh. You can all do it in the terminal on your ub touch device.

          Again, thank you! πŸ™‚

          1 Reply Last reply Reply Quote 0
          • S Offline
            savetier
            last edited by 14 Nov 2019, 00:00

            Followed the instructions recently, still works like a charm! πŸ™‚

            1 Reply Last reply Reply Quote 0
            • R Offline
              rokkzox
              last edited by 15 Nov 2019, 19:23

              Sweet...!
              Has anybody tried this method with a bq aquaris e4.5 ?

              1 Reply Last reply Reply Quote 0
              • W Offline
                wdehoog @alefnode
                last edited by 22 Nov 2019, 21:25

                @hadrianweb How did you get mopidy keep on playing with the display off? I am trying to use spotify using librespot or spotifyd but the audio becomes teriibly choppy when the display goes off.

                1 Reply Last reply Reply Quote 0
                • A Offline
                  alefnode
                  last edited by 28 Nov 2019, 10:57

                  Yeah, it also works well with screen off

                  1 Reply Last reply Reply Quote 0
                  • L Offline
                    L-00376 Banned @stefwe
                    last edited by 30 Dec 2019, 12:20

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      hackthisut
                      last edited by hackthisut 4 Apr 2020, 10:51 4 Apr 2020, 10:51

                      Sorry it don't work. See this Screenshot:

                      Screenshot von 2020-04-04 12.30.27.png

                      Any Ideas?

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        HendriXXX
                        last edited by 5 Apr 2020, 17:46

                        If I remember correct, you need to use newer python library with Mopidy. Xenial has too old..

                        I installed Mopidy with Ubuntu Bionic 18.04 - chroot and it is working fine.

                        H 1 Reply Last reply 7 Apr 2020, 15:34 Reply Quote 0
                        • H Offline
                          hackthisut @HendriXXX
                          last edited by 7 Apr 2020, 15:34

                          @HendriXXX Thanks for your reply! But what exactly do I have to do now? What commands do I have to enter?

                          D 1 Reply Last reply 11 Apr 2020, 07:52 Reply Quote 0
                          • D Offline
                            dispanser @hackthisut
                            last edited by 11 Apr 2020, 07:52

                            @hackthisut

                            I have the same problem; I followed the instructions, but mopidy won't run on my xenial-based libertine container. I tried running

                            phablet@ubuntu-phablet:~$ libertine-container-manager create -i lxc-experiment -t lxc -d bionic

                            to get a container based on a newer distribution, but that doesn't work:

                            libertine-container-manager:76: ERROR: create(): System kernel does not support lxc type containers. Please either use chroot or omit the -t option.

                            Not sure how to proceed; note that I'm making my first baby steps with ubuntu touch, so it's well possible that I messed up some initial step, making the guide non-appicable in the first place.

                            A 1 Reply Last reply 24 Apr 2020, 09:23 Reply Quote 0
                            • A Offline
                              alefnode
                              last edited by 19 Apr 2020, 11:46

                              I have installed again from zero making all the steps on guide and works well on xenial container

                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                alefnode @dispanser
                                last edited by 24 Apr 2020, 09:23

                                @dispanser said in How to use Spotify on Ubuntu Touch:

                                -d bionic

                                The problem there is that you are not continuing the guide, try without using "-t lxc"

                                1 Reply Last reply Reply Quote 0
                                • C Offline
                                  connochaetes
                                  last edited by 21 Aug 2020, 19:47

                                  Hello.

                                  Thank you for this instructive tutorial. Most of the steps went well. But there were some problems.

                                  (There 's the minor issue, that the referenced icon audio-x-generic isn't there. But I guess, that 's something, I'll figure out by myself. I just wanted to keep you informed.)

                                  Sadly, it won't work: If I click on the Mopidy icon, there 's a wheel for a moment. Then it stops and vanishes. Is there a way to get a log file?

                                  libertine-container-manager list-apps
                                  xenial_mopidy_0.0
                                  xenial_python2.7_0.0
                                  xenial_python3.5_0.0
                                  xenial_python3.7_0.0
                                  xenial_vim_0.0
                                  

                                  I had to do some version upgrades for Mopidy-Iris wouldn't start with python2.7. Could the problem be originated in the parallel installation of different versions of python?

                                  Container:
                                  Ubuntu 'Xenial Xerus' 16.04
                                  
                                  OnePlus One
                                  bacon
                                  Ubuntu 16.04 (OTA-12)
                                  

                                  Could it be a problem with the Spotify authorization? Do I have to use "..."? I am not sure, if I have to use the (kind of cryptic) username mentioned on https://www.spotify.com/de/account/overview/.

                                  Please, let me know, if you need further informatoin. Any help would be welcome.

                                  arubislanderA 1 Reply Last reply 22 Aug 2020, 21:20 Reply Quote 0
                                  • arubislanderA Offline
                                    arubislander @connochaetes
                                    last edited by 22 Aug 2020, 21:20

                                    @connochaetes
                                    There is work being done on a native Spotify client by @manland. Look here to help testing the beta version of his app.

                                    πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                                    Happily running Ubuntu Touch
                                    Google Pixel 3a (20.04 DEV)
                                    JingPad (24.04 preview)
                                    Meizu Pro 5 (16.04 DEV)

                                    C 1 Reply Last reply 24 Aug 2020, 12:59 Reply Quote 0
                                    • C Offline
                                      connochaetes
                                      last edited by 23 Aug 2020, 11:28

                                      OK. Obviously, I had to do some homework. (To all the readers: Thanks for your patience. Hopefully, my posts could be useful for UBports learners.)


                                      It 's a standard that you the libertine container's version is the same as UBports' - in my case 16.04 (xenial):

                                      libertine-container-manager create -i xenial
                                      

                                      I am switching as root into the newly built libertine container. It 's a GNU/LInux system where packages could be installed via apt:

                                      libertine-container-manager exec -i xenial -c "/bin/bash"
                                      

                                      For example, I am installing vim:

                                      apt install vim
                                      

                                      I am leaving the libertine container:

                                      exit
                                      

                                      Outside the libertine container, I can see the installed packages this way:

                                      libertine-container-manager list-apps
                                      

                                      I added the matching mopidy repository. If I am right, on a 16.04 (xenial) system, it has to be jessie:

                                      wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/jessie.list
                                      

                                      I am installing mopidy and mopidy-spotify via apt. I do the (hopefully) appropriate configuration. I am starting mopidy using the new icon in my OnePlus One's GUI. Here 's the appropriate log file:

                                      cat ~/.cache/upstart/application-legacy-xenial_mopidy_0.0-.log
                                      

                                      Yay! So far, all went well. - Now, I have to install Mopidy-Iris as a Python package. Therefore, I have to install Python3.7. This is, where the road is starting to get bumpy (for me), for I am not too familiar with Python packages:

                                      apt install software-properties-common
                                      add-apt-repository ppa:deadsnakes/ppa
                                      apt install python3.7
                                      apt install python3-pip
                                      python3.7 -m pip install Mopidy-Iris
                                      

                                      Now, thing's are getting out of (my) control:

                                      • A message is requesting me to upgrade pip.
                                      • I guess, mopidy is installed as a Python package in another version as the previous one.
                                      • I am not able to start mopidy via icon. I am not able to see a file ~/.cache/upstart/application-legacy-xenial_mopidy_0.0-.log.
                                      • Starting mopidy in the libertine container's console via command line, I see that (another version of) gstreamer is requested.

                                      I guess, this dependency mash-up is caused by Python3.7 from the deadsnakes repository. At this moment, I am not able to fix this.

                                      Any suggestions?

                                      1 Reply Last reply Reply Quote 0
                                      • C Offline
                                        connochaetes
                                        last edited by 23 Aug 2020, 12:00

                                        Is there an alternative to Mopidy-Iris. (So far, mopidy itself was working for me.)

                                        @arubislander Thanks for your suggestion. I'm going to have a look.

                                        1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          connochaetes
                                          last edited by 23 Aug 2020, 14:58

                                          OK. I just tested authentification and Mopidy-Iris on another GNU/Linux machine. It 's working there.
                                          So, right now, I 'll "only" have to get things (e. g. Mopidy-Iris in a libertine container... or Futify) running on my UBports device.

                                          1 Reply Last reply Reply Quote 0
                                          • C Offline
                                            connochaetes @arubislander
                                            last edited by 24 Aug 2020, 12:59

                                            Earlier, @arubislander mentioned:

                                            @arubislander said in How to use Spotify on Ubuntu Touch:

                                            @connochaetes
                                            There is work being done on a native Spotify client by @manland. Look here to help testing the beta version of his app.

                                            I tested the app. For me, it's the solution. - Spotify-Iris still won't work on my OnePlus One (bacon). I hope, my long postings weren't bothering you. Perhaps, someone can learn some things about libertine containers by reading them.

                                            Thanks to the community.

                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post