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

    Problems with Spotify in Anbox

    Scheduled Pinned Locked Moved Support
    3 Posts 3 Posters 889 Views 1 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.
      • H Offline
        hoogs
        last edited by

        Hi!

        I've been trying to get Spotify working with Anbox on my Nexus 5, but I've hit a bit of a snag. It works fine until I lock the phone, at which point the audio starts to crackle a lot. Unlocking the phone solves the issue. I've tried multiple versions of both Spotify and Spotify Lite, but I get the same result no matter which version I use. So my question is, has anyone here gotten Spotify to work in the background on UBports with Anbox?

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          schouk @hoogs
          last edited by

          @hoogs I had the same issue. I did not find a fix. The only thing I found out is, that it did not happen if I play the music via bluetooth. I bought a cheap bluetooth receiver for my headphones and used it like this for a few weeks.

          Because I had other issues with anbox (regarding camera freezes, nexus 5), I removed anbox again.

          AppLeeA 1 Reply Last reply Reply Quote 0
          • AppLeeA Online
            AppLee @schouk
            last edited by AppLee

            @schouk IIRC you tried investigating the media hub and other ways to send the audio.

            Now it looks like "solving" the issue with bluetooth was achieved by degrading the audio quality to allow it to be more fluid...

            It was explained that when the phone is locked the processor is slower. Maybe the audio stream from spotify is too hard to decode in real time for the processor.
            Bluetooth is known to have a lower bitrate so the audio stream is lighter than the original one.
            My guess is that bluetooth requiring a lower bandwidth the processor is now able to process the audio stream in real time.
            Or maybe downgrading the stream is easier than processing it through the audio output...

            What I would try is to bufferize the stream to give some slack to the processor to produce a clean audio output. I hope this can help.

            [Edit] Maybe it's just RAM usage restricting the buffer size hence leading to those audio glitches

            1 Reply Last reply Reply Quote 1

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post