Jump to content

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


maloletov
 Share

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

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...