Skip to content
This repository has been archived by the owner on Mar 27, 2018. It is now read-only.

Feature: Stop music on call and duck on ringing #39

Open
459below opened this issue Oct 25, 2015 · 2 comments
Open

Feature: Stop music on call and duck on ringing #39

459below opened this issue Oct 25, 2015 · 2 comments

Comments

@459below
Copy link

At the moment jitsi-android doesn't care for music. I would like to implement a behavior as such:

-Duck music while ringing on incoming or outgoing call
-Stop music if the actual call takes place

@459below
Copy link
Author

I did a first implementation here which I'm going to start testing/using. I'll do a PR as soon as it can be deemed stable.

@459below
Copy link
Author

CyanogenMod's Apollo Music Player doesn't respond to the intent. I grepped through Apollo's code and it doesn't seem to be handling the "com.android.music.musicservicecommand" intent at all. I might have to fake key inputs a la "KeyEvent.KEYCODE_MEDIA_PAUSE" to get it to pause its playback.

Players like AOSP's Music, Google's Play Music and Samsung's Music comply, though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant