Skip to content

GitLab

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    • Menu
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • malp malp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 124
    • Issues 124
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Gateship One
  • malpmalp
  • Issues
  • #182
Closed
Open
Created Jul 30, 2019 by Galen Abell@gjabell

volume keys do not control volume if app is not in foreground

Bug Report

Setup Description

  • MPD is running in a Termux session on the phone
  • MALP is directly connected to the phone via localhost:6600 (streaming not enabled)

Version of M.A.L.P.

1.2.4

Version of MPD

0.21.11

Host Operating System

N/A

Android Version

Android 9 / Pie

Device Manufacturer and model

OnePlus One

Bug Description

Description

The volume keys in Android 9 (and possible older) default to controlling the "cast" volume, rather than the media volume when MALP is not in the foreground (including on the lockscreen).

Here's an example of the volume control on the lock screen: malp

I suspect this has something to do with how the app's sound is registered, or possible the notification (since that is visible while the app is in the background?). I would be happy to look into the issue / create a PR if someone can point me in the right direction in the codebase.

Reproducible

Yes

Expected Behaviour

Volume keys control the media volume when MALP is in background.

Actual Behaviour

Volume keys control the "cast" volume when MALP is in background.

Log

N/A

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking