[jitsi-dev] [jitsi-android] Feature: Stop music on call and duck on ringing (#39)


#1

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

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-android/issues/39


#2

I did a first implementation [here](https://github.com/459below/jitsi-android/commit/591b2492f17b719e408598be86ad9ebac292a69a) which I'm going to start testing/using. I'll do a PR as soon as it can be deemed stable.

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-android/issues/39#issuecomment-160056225


#3

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.

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-android/issues/39#issuecomment-160543800