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

    Adjust the volume?

    Scheduled Pinned Locked Moved App Development
    5 Posts 4 Posters 43 Views 4 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.
    • D Online
      dl8aax
      last edited by

      I made an app to listen to internet radio. Unfortunately, I can't get the volume control to work. Sliding the slider doesn't change the volume.

      My complete project is here.

      https://gitlab.com/dl8aax/warpwave

      G 1 Reply Last reply Reply Quote 0
      • D Offline
        domubpkm
        last edited by

        https://open-store.io/app/warpwave.dl8aax

        Sorry i can't help you ! But thank you for this radio app !

        1 Reply Last reply Reply Quote 0
        • G Offline
          gpatel-fr @dl8aax
          last edited by

          @dl8aax

          my quick and mostly uninformed guess would be that for an app to do something intrusive like changing the sound level for the system, some authorization would (should) be needed.

          So maybe tracking what is happening at the D-Bus level by starting 'gdbus monitor' just before initiating the change in your app and looking at the saved result could be a way to confirm (or not) this idea.

          If that's the problem, it could be a matter of setting the right Apparmor policy for your app.

          1 Reply Last reply Reply Quote 0
          • D Online
            dl8aax
            last edited by

            Thanks for your suggestion.

            I'm not trying to change the system volume. The slider only calls

            C++
            QMediaPlayer::setVolume()

            on my own QMediaPlayer instance.

            The property changes correctly (I can read back the new value), but the playback volume never changes.

            Is QMediaPlayer::setVolume() currently unsupported by the AalMediaPlayer / MediaHub backend on Ubuntu Touch 20.04?

            arubislanderA 1 Reply Last reply Reply Quote 0
            • arubislanderA Offline
              arubislander @dl8aax
              last edited by

              @dl8aax this is something we've recently also noticed, though it might have been the case all along, or possibly since the upgrade to noble.

              Do the physical volume buttons work? Does the volume slider under the volume indicator work? If the answer to both is yes, maybe seeing what the volume indicator does.in the code.

              πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
              Happily running Ubuntu Touch
              JingPad (24.04-1.x daily)
              OnePlus Nord N10 5G (24.04-2.x daily)
              PinePhone OG (20.04)
              Meizu Pro 5 (16.04 DEV)

              1 Reply Last reply Reply Quote 0

              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