Jump to content
Poweramp
maloletov

com.maxmpz.audioplayer.TRACK_CHANGED and Position in track in seconds

Recommended Posts

On long tracks, when the track is switched (next/prew), the player remembers the position in track, but the event "com.maxmpz.audioplayer.TRACK_CHANGED" returns the pos=0 (real position<>0 in track)

if (action.equals("com.maxmpz.audioplayer.TRACK_CHANGED")) {
                Bundle mCurrentTrack = intent.getBundleExtra("track");
                ...                
                duration = mCurrentTrack.getInt("dur") * 1000;
                position = mCurrentTrack.getInt("pos") * 1000;
...

02-27 17:43:01.880 D/xposed-mtc-vwcat-pa( 4034): Poweramp: com.maxmpz.audioplayer.TRACK_CHANGED
02-27 17:43:01.881 D/xposed-mtc-vwcat-pa( 4034): id=28
02-27 17:43:01.881 D/xposed-mtc-vwcat-pa( 4034): title=Antenne Vorarlberg 2000er Hits (128 Kbps)_00001
02-27 17:43:01.881 D/xposed-mtc-vwcat-pa( 4034): album=
02-27 17:43:01.881 D/xposed-mtc-vwcat-pa( 4034): artist=
02-27 17:43:01.881 D/xposed-mtc-vwcat-pa( 4034): filename=/mnt/usb_storage2/Antenne Vorarlberg 2000er Hits (128 Kbps)_00001.mp3
02-27 17:43:01.881 D/xposed-mtc-vwcat-pa( 4034): duration=52142000
02-27 17:43:01.881 D/xposed-mtc-vwcat-pa( 4034): position=0

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×