jitsi-android icon indicating copy to clipboard operation
jitsi-android copied to clipboard

Feature: Stop music on call and duck on ringing

Open 459below opened this issue 10 years ago • 2 comments

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 avatar Oct 25 '15 14:10 459below

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 avatar Nov 27 '15 07:11 459below

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.

459below avatar Nov 30 '15 07:11 459below