We have moved to a new Sailfish OS Forum. Please start new discussions there.
15

Android support: pause playback on headphone disconnect

asked 2015-01-15 14:08:23 +0200

Jonni gravatar image

Android music playback (e.g. Spotify) should be paused when headphones are disconnected from the device.

Ideally this would be implemented by creating a bridge between the Sailfish MPRIS system to the Android layer's equivalent system. This would enable even things like the Lockscreen mediaplayer controls patch by Coderus to control Android mediaplayer playback.

edit retag flag offensive close delete

Comments

1

thats one of the reason why i switched to cutespotify, maybe thats also an option for you. it doesn't support the artist/album/song structure of spotify but at least mpris works. apart from spotify i can't think of any need to run android music players.

weberik ( 2015-01-21 17:02:50 +0200 )edit
1

This used to work a couple updates back at least with the di.fm client. Then it stopped working. So I guess making it work again should be simple.

flux ( 2015-01-23 10:58:58 +0200 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2015-01-20 17:03:30 +0200

Milosz gravatar image

updated 2015-01-20 17:04:31 +0200

Maybe this could be of some interest:

https://bitbucket.org/mderezynski/android_mpris_bridge/src

I wrote a Linux server component to bridge all locally running players supporting MPRIS over network which allows an accompanying Android app (source for both is open) to control those players remotely.

It also bridges audio focus between Android <-> Linux. The protocol runs over JSON-RPC.

If you'd remove the JSON-RPC protocol, you'd probably have more or less what you're looking for (?)

edit flag offensive delete publish link more

Comments

This seems like the opposite of what is requested.

MPRIS bridge looks great but it provides the possibility of controlling MPRIS enabled Sailfish native apps from Android.

What is requested is that Android apps would implement MPRIS so they are controlled from Sailfish.

Do you know whether there is a similar feature in Android which would be the MPRIS equivalent?

Tanty ( 2015-02-06 09:54:46 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2015-01-15 14:08:23 +0200

Seen: 851 times

Last updated: Jan 20 '15