Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,732,479 Members 49,374 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][Xposed] S-View Music Controls [2.5: Spotify support]

Tip us?
 
MohammadAG
Old
(Last edited by MohammadAG; 20th April 2014 at 05:44 PM.)
#1  
Recognized Developer - OP
Thanks Meter 4650
Posts: 1,059
Join Date: Sep 2009
Location: Jerusalem

 
DONATE TO ME
Default [MOD][Xposed] S-View Music Controls [2.5: Spotify support]

Requires Xposed framework!

The S-View cover is really handy, it displays the date, time, your notifications, allows you to answer calls and dismiss alarms, and shows your currently playing song. The last part only works with the stock music player, and doesn't allow interactions.

This mod allows you to display metadata from and control the following players:
  • Stock Samsung Music Player
  • PowerAMP
  • Google Play Music
  • Spotify
  • Limited support for any music player that supports metachanged intent and media buttons

Swiping left or right allows you to change the current song, long pressing the screen for a configurable time allows you to toggle playback.

Most variables are configurable in settings. To access settings, open Xposed Installer, find the module and click on it, I didn't want to add another icon to the launcher, it got cluttered by enough Xposed modules doing that already...

Screenshots:



Compatibility:
Obviously, this needs the Galaxy S4 to work, since it's the only device with an S View cover at the moment.

Source:
The mod is open source, and licensed under GPLv3: https://github.com/MohammadAG/Xposed...-MusicControls
You may not post this on the Play Store, whether free or paid.

Download:
Get it from the Play Store or http://mohammadag.xceleo.org/public/...ntrols_2.6.apk

Support development:
If you found this mod useful, consider donating with PayPal or buying the paid version.

Thanks:
  • rovo89 for his Xposed Framework
  • Dr.Alexander_Breen for his help with IRemoteControlDisplay (used in testing version, never really made it in 2.0)
  • Tungstwenty for method to detect if a module is enabled (from Master Key Patch source).
  • Chainfire for ways to enable/disable activities (multi-icon tutorial)
  • MrC85 for helping me with Spotify support.

Changelog:

[2.6]
  • Fixed swipe not working for default player when Swipe only while playing is checked.

[2.5]
  • Added copyright info to settings.

[2.4]
  • Added Spotify support.
  • Added warnings if Xposed-related problems are detected.
  • Added launcher icon for people who were asking why this has no icon. It can be disabled in settings.
  • Changed default music player to one everyone has: Samsung's.
  • Long press now enabled by default.
  • Added debug mode, enabling this makes TTS speak what the app is detecting.

[2.3]
  • Added option to enable swipe gestures only while playing music.

[2.2]
  • Stock music player control support.
  • Paid version on Play Store. Below is the same exact free version for xda users, please don't share it.

[2.1]
  • Rewrote long press implementation, old one had a lot of bugs.
  • Fixed placeholder album art not showing for Poweramp songs.
  • You won't see this: worked on base foundation for ticker support. This would soon allow apps to hook onto this to display their own scrolling text. This text will show up where the title is, scroll once, then the original text will be shown (current song or otherwise).

[2.0]
  • Google Play Music support.
  • Skip tracks in other players by swiping left/right, metadata won't be shown.
  • Fixed swipes only working on the clock, and not the actual song text.
  • Show placeholders when no album art is found.

[1.1]
  • Support basic gestures to change songs.

[1.0]
  • Initial release.
Follow me on Twitter: @MohammadAG
Google+: https://plus.google.com/103508952817353883168/posts

Check out my Xposed modules.
Send files with Android Beam™ on Android 4.1+: File Beam (Touch to Send)
Enable USB Mass Storage Mode on Samsung devices with SG USB Mass Storage Enabler.
Use your flashlight at different brightness levels with Adjustable Torch.
Enable Music Controls on your S-View screen with S-View Music Controls
The Following 63 Users Say Thank You to MohammadAG For This Useful Post: [ Click to Expand ]
 
bala_gamer
Old
#3  
bala_gamer's Avatar
Recognized Contributor
Thanks Meter 6528
Posts: 11,305
Join Date: Mar 2011
Location: Madurai-Chennai

 
DONATE TO ME
great contribution mate
DEVICE : 9505 ARCTIC BLUE || MODEM : NC6 || PRIMARY : SOKP || KERNEL : KTOONSEZ || DPI : 320 || LAUNCHER : BUZZ || APPS : 200+ || BATTERY BACKUP : ~~~
|| temp fix for screen smearing in s4 || SenseWiz Theme || multi dpi apps || S3 CPU/GPU overclocking guide || New to Android/s3? Read the FAQ here ||

Oldies : Galaxy S3,S2,SL|| Nokia X6,5230,N73
 
MohammadAG
Old
#4  
Recognized Developer - OP
Thanks Meter 4650
Posts: 1,059
Join Date: Sep 2009
Location: Jerusalem

 
DONATE TO ME
I implemented gesture controls, swiping left/right on the clock will change tracks in Poweramp

Same link, it's a higher version though.
Follow me on Twitter: @MohammadAG
Google+: https://plus.google.com/103508952817353883168/posts

Check out my Xposed modules.
Send files with Android Beam™ on Android 4.1+: File Beam (Touch to Send)
Enable USB Mass Storage Mode on Samsung devices with SG USB Mass Storage Enabler.
Use your flashlight at different brightness levels with Adjustable Torch.
Enable Music Controls on your S-View screen with S-View Music Controls
 
wcoast
Old
#5  
wcoast's Avatar
Senior Member
Thanks Meter 384
Posts: 1,435
Join Date: Jul 2011
Location: Los Angeles
Excellent ideas and amazing work!

Sent from LA
 
tocirah1
Old
#6  
Member
Thanks Meter 14
Posts: 35
Join Date: Jul 2013
Would it be possible to get Air Gesture and Voice Control working with a non-stock music player? Is all that stuff coded directly into the Music Player or the Framework? Could it be modded to just send general "Next Track" commands etc?
 
MohammadAG
Old
#7  
Recognized Developer - OP
Thanks Meter 4650
Posts: 1,059
Join Date: Sep 2009
Location: Jerusalem

 
DONATE TO ME
Quote:
Originally Posted by tocirah1 View Post
Would it be possible to get Air Gesture and Voice Control working with a non-stock music player? Is all that stuff coded directly into the Music Player or the Framework? Could it be modded to just send general "Next Track" commands etc?
Good question actually. I think Voice Control is part of S Voice so that may be doable.
Not sure about Air Gestures, will look into it.

Sent from my GT-I9500 using xda app-developers app
Follow me on Twitter: @MohammadAG
Google+: https://plus.google.com/103508952817353883168/posts

Check out my Xposed modules.
Send files with Android Beam™ on Android 4.1+: File Beam (Touch to Send)
Enable USB Mass Storage Mode on Samsung devices with SG USB Mass Storage Enabler.
Use your flashlight at different brightness levels with Adjustable Torch.
Enable Music Controls on your S-View screen with S-View Music Controls
 
Annihlist
Old
#8  
Senior Member
Thanks Meter 25
Posts: 178
Join Date: May 2010
Sview for asop roms like cyanogenmod will be nice. Since this is open sourced. Some cool things might become

Sent from my GT-I9505 using xda premium
 
jazzypit
Old
#9  
Senior Member
Thanks Meter 68
Posts: 243
Join Date: Apr 2008
Location: lyon
I keep a eye on this . great idea. I search a solution to make it work in miui rom

Envoyé depuis mon GT-I9505 en utilisant Tapatalk 4 Beta
 
andymihail
Old
#10  
andymihail's Avatar
Senior Member
Thanks Meter 85
Posts: 439
Join Date: Jul 2010
Location: Bucharest
This is awesome! Thanks!
Samsung SM-G900F Galaxy S5 • Samsung i9505 Galaxy S4 • Google Chromecast

Tags
music controls, play music, poweramp, s view, s-view
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes