Jump to content
Poweramp

maloletov

Approved Members
  • Content count

    8
  • Joined

  • Last visited

About maloletov

  • Rank
    Newbie
  1. maloletov

    API Bug (TRACK_CHANGED)

    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) Example: A Track duration 870 minutes, playing 300 minutes. Press Next - playng next B track on 0 position. Press Prew - PA pesume playing A track on 300 minutes. API send intent TRACK_CHANGED, "pos=0", must be "pos=18000" 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 PA last version, Andriod 5.1.1, Head Car Unit
  2. 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
  3. I also saw a problem on the car device: if you pause the PA, do not close the player and turn off the car device, the position will be lost. If you pause, close the PA, turn off the car device, then the position will be restored at startup. Is this a car device problem or does the player remember the position when it is turned off and not during a pause?
  4. maloletov

    Music doesnt stop when phone rings

    Car untit does not know how to control the PA, see the 4pda.ru, there are programs that control the PA on the car unit: pausing the call, playing after, etc. It all depends on the car unit and the version of Android
  5. Made in China ((. What broadcast message pauses the player? I found broadcast "com.device.poweroff" and "android.intent.action.ACTION_SHUTDOWN" I suspect that they are not sent to the system on this firmware. Maybe I can send it forcibly through my service, fix chinese programmers. Sorry for the stupid questions, all my life I have written programs for windows and on android just starting
  6. That's right. PA itself can pause when you turn off Android? –ěr before shutting down the system, it is imperative that it pause the command via the API?
  7. Thanks for the quick response! Conducted an experiment: Put the player on pause, close PA, turn-off device, turn-on device and start PA. Position is resume. How to close PA correctly when shutting down the system? Now when I turn off the device the intent "com.device.poweroff" is sent: final static String PowerOff = "com.device.poweroff"; Intent POff = new Intent(Settings.PowerOff); context.sendBroadcast(POff); Theoretically, all applications should complete correctly, because the power does not disappear, device is turned off by a can-bus signal.
  8. I use the player in the car. For some time the player stopped remembering the position of the track after turning off the device. The track player itself remembers, but the position is not. How does track position memory work? Everything works fine on the phone. I use Poweramp Music Player V3 alpha-build-702, Andriod 5.1.1
×