[Bug] Current playback time resets to previous time after switching to other apps. - MX Player

Hi everyone.
I like to listen to audiobooks with mx player and the files tend to be large (>10h).
Very often after I am done listening to the audiobook and pause the playback and switch to other apps and then return to MX player later I can see the progress indicator skip back to the start of my previous listening session.
This happens in about 50% of tries but apparently only after Android has had time to clean up memory. I am not sure on that though. It doesn't seem to matter which Audioformat the file has.
My guess is that under certain circumstances the current playback time is not correctly stored.
I am using a a rooted Samsung Galaxy S7 with the latest stock firmware.
The bug has occurred on my Nexus 5 over a year ago too though.
I can provide more information if needed.

hi,
as you said, it will happen when android kills MX Player in a unexpected way. MX Player will save the sate of the playback on some conditions like manual pausing, or pause due to some interference from other apps. When it's killed it will die all of sudden & can't save the state. If you are using RAM boosters & memory cleaner apps, kindly exclude MX Player in it. As you are using a Samsung device, try to exclude MX Player in Smart Manager & check it still happens.
I had some similar issues on S5 in past & reported to Samsung about a firmware issue in which Samsung Smart Manager kills the important audio service. It was resulting to the issue. Later it was fixed by Samsung through a firmware update.

Related

Stock Video Player & Media Scanner Questions

Guys,
Couple of Questions.
1. The stock video player is fine, except it doesn't remember the location in the video. Everytime you start the player, it starts from the begining. Any way to make it remember the location, or other alternatives?
2. How to stop the Media Scanner from running when you disconnect from PC or restart the phone. It takes a good 5-6mins, and stops you from using the Gallery during that time?
Thanks for your input.
1) can't really help you there with the defaults, try DoubleTwist ?
2) Media scanner will run as long as TouchWiz is running, AFAIK
The newer ROMs seem to have fixed the Media Scanner issue - but since they have other issues, I am going to wait for an official release - I rarely reboot my phone or mount my SD card.
There are other Video players in the market - try some of them. If I pause a video and exit the video player, but come back later - the video i was watching starts at the spot i paused it. I guess this probably doesn't stay across a power cycle. I am not sure if any video player will.
I've been using Meridian for both video and music and have been pretty happy. For video it will remember where you stopped (per video, and across power cycles). It even has an option to always rewind 3 seconds when coming back from another app.
Sent from my SAMSUNG-SGH-I897 using XDA App
Thanks for the replies. Will try Meridian.
As for the Media Scanner, it's not just after power cycle that it comes up, but also after I disconnect from PC.
I remember seeing a video that showed how to disable TW on Epic and Fascinate, but that didn't work for Captivate. Anyone else know how to disable TW, and what other things does that change? (contacts, messaging???)

Music stops after a while

Hi,
I'm having a strange issue with the Mi4C and the latest stable V7.0.15.0.LXKCNCI (MIUI7).
On my way to work I listen to music and MIUI seems to be overwhelmed with this mighty task.
With default settings, Poweramp cannot even play a single Mp3 without skipping/crackling noises about every 30seconds.
While this alone is annoying enough, the music playback just stops after about 30-40 minutes. The player still displays as if it were playing, but no sound comes out..
I've tried
- allow Poweramp to Autostart and keep background processes using the MIUI settings
- setting higher priority and buffering for playback directly in Poweramp
The latter seems to resolve the skipping part, but the sudden stops are still there.
I found several threads with similar but not identical problems, the most prominent being
http://en.miui.com/thread-77248-1-1.html
Can anyone confirm this behavior?
Any workarounds?
Thanks
Jochen
I fixed it locking my music player in memory.. i just swiped down the app in multitasking (i'm on xiaomi.eu multilang rom)
yes, i can confirm on mokee, but not always. dunno why

[BUG] Random crashes, freezing and audio stopping

Hello, since one of the latest updates I have been having a lot of issues with mx player acting up.
The problem started when I was listening to a video without the screen on and after around 30 seconds the audio would cut out but the video would continue to run. Either that would happen or it would freeze my device.
I have been unable to get a log of that issue but I just had a video freeze on me and the player crash so I will post it below. I have uninstalled and signed up to the nightly build but still getting the same issues.
Phone - samsung galaxy s7
Rom - stock unrooted
Version - 6.0.1
MX version - nightly Version 1.8.4.nightly.20160125 (ARMv7 NEON)
Log link = h**ps://drive.google.com/file/d/0By4WsG59vc5lNG9lV0psaUVTQnM/view?usp=drivesdk
Just encountered another freeze when the screen was off and managed to get a log.
Log file = h**ps://drive.google.com/file/d/0By4WsG59vc5lVTBVVW5DZ01IRk0/view?usp=drivesdk
@Penthus
The issue seems to be from system.
AudioPolicy Server & AudioFlinger dies while playing.
Does it happens with a particular file or everywhere?
Does it happen when the player is on foreground?
Does it happens when you use HW decoder (Seems that you are using HW+)?
Sent from my SM-G900H using Tapatalk
ktsamy said:
@Penthus
The issue seems to be from system.
AudioPolicy Server & AudioFlinger dies while playing.
Does it happens with a particular file or everywhere?
Does it happen when the player is on foreground?
Does it happens when you use HW decoder (Seems that you are using HW+)?
Sent from my SM-G900H using Tapatalk
Click to expand...
Click to collapse
It happens to a whole range of videos I view using the player and have not been able to reproduce it as it seems to happen at random intervals and not in the same spot. It can happen 5 times in an hour or a couple of times a day.
It happens when running in the foreground but less frequently. I have disabled power saving on my device to see if that was affecting it but does not appear to have made a difference.
I have tried SW, HW and HW+ to see if any were better than the others and they seem to crash with the same frequency.
Penthus said:
It happens to a whole range of videos I view using the player and have not been able to reproduce it as it seems to happen at random intervals and not in the same spot. It can happen 5 times in an hour or a couple of times a day.
It happens when running in the foreground but less frequently. I have disabled power saving on my device to see if that was affecting it but does not appear to have made a difference.
I have tried SW, HW and HW+ to see if any were better than the others and they seem to crash with the same frequency.
Click to expand...
Click to collapse
Does any other apps having this issue..?
It seems to be a bug from the system.
Sent from my SM-G900H using Tapatalk
It happens very rarely with my media player when the audio will stutter for a few seconds and the phone becomes unresponsive. It definitely happens a lot more frequently with mx player and it has only started the last couple of weeks.
Is there anything I can do on my end to see what might be causing the issue?
Just tried changing to HW again and got a freeze. The app recovered from the freeze and the video resumed but the audio didn't. I had to play some audio on my phone and then the video audio started again.
Log h**ps://drive.google.com/file/d/0By4WsG59vc5lX3F2Y281RUo3T1U/view?usp=drivesdk
Penthus said:
Just tried changing to HW again and got a freeze. The app recovered from the freeze and the video resumed but the audio didn't. I had to play some audio on my phone and then the video audio started again.
Log h**ps://drive.google.com/file/d/0By4WsG59vc5lX3F2Y281RUo3T1U/view?usp=drivesdk
Click to expand...
Click to collapse
I have forwarded the issue to the developer.
He may find more information about this issue your logs.
Sent from my SM-G900H using Tapatalk
Thanks for your help so far.
@Penthus
Hi, would you try after turning off `Fade on start` and `Fade on seek` from Settings > Audio?
If audio crash continues, turn off Settings > Audio > `System volume panel` too.
bleu8888 said:
@Penthus
Hi, would you try after turning off `Fade on start` and `Fade on seek` from Settings > Audio?
If audio crash continues, turn off Settings > Audio > `System volume panel` too.
Click to expand...
Click to collapse
Since turning off fade on start and fade on seek I have yet to have a crash or slowdown. I have been switching between sw, hw & hw+. So far so good, I will post back if I experience anything.
Thanks for all your help.
Wasn't sure whether to make a new thread or post in this one again. Seeing as the issue is similar I thought I should add to this one. Since having my last issue fixed things have been going perfectly until a few days ago when my videos started crashing with HW+ decoder. It was happening fairly frequently so I decided to to try out the other decoders and they all had issues.
HW+ as I said would hard crash out to the main menu with the crash report. HW would freeze and then start the video from the start. SW would have the video continue but the audio would freeze and then the video would roll back to sync up with the audio. It also seems to happen more frequently when I have headphones attached to the phone but that might just be statistical bias as I use headphones 99% of the time with my phone.
I have been using SW as it allows me to still watch videos although it can be a bit annoying as this can happen every couple of minutes or as frequently as every 5-10 seconds.
I have got log reports from each of the different decoders.
HW+
https://drive.google.com/open?id=0By4WsG59vc5leEt3bVdfc3NpX1k
HW
https://drive.google.com/open?id=0By4WsG59vc5lVlE2cFAtUFo1WDA
SW
https://drive.google.com/open?id=0By4WsG59vc5lYklqekQtbDNCY3M
If anyone can help me out with this is would be greatly appreciated.
Penthus said:
Wasn't sure whether to make a new thread or post in this one again. Seeing as the issue is similar I thought I should add to this one. Since having my last issue fixed things have been going perfectly until a few days ago when my videos started crashing with HW+ decoder. It was happening fairly frequently so I decided to to try out the other decoders and they all had issues.
HW+ as I said would hard crash out to the main menu with the crash report. HW would freeze and then start the video from the start. SW would have the video continue but the audio would freeze and then the video would roll back to sync up with the audio. It also seems to happen more frequently when I have headphones attached to the phone but that might just be statistical bias as I use headphones 99% of the time with my phone.
I have been using SW as it allows me to still watch videos although it can be a bit annoying as this can happen every couple of minutes or as frequently as every 5-10 seconds.
I have got log reports from each of the different decoders.
HW+
https://drive.google.com/open?id=0By4WsG59vc5leEt3bVdfc3NpX1k
HW
https://drive.google.com/open?id=0By4WsG59vc5lVlE2cFAtUFo1WDA
SW
https://drive.google.com/open?id=0By4WsG59vc5lYklqekQtbDNCY3M
If anyone can help me out with this is would be greatly appreciated.
Click to expand...
Click to collapse
From Logs:
AudioSystem: AudioFlinger server died!
IMediaDeathNotifier: media server died
AudioSystem: AudioPolicyService server died!
The issue happens with HW as well.
HW decoder uses the mediaplayer API provided by android. The is used in the stock video player as well.
From the logs the The AudioFlinger & AudioPolicyService Server both has died for an unknown reason. So, mediaserver is also died. [all are system services.]
In some devices when the volume is changed very aggressively it may lead to the issue. This was the issue with OP. But, in your case you have already disabled audio fading. So, the reason is unknown.
Could give some more details....?
Does this happen with all videos or only in certain videos or certain formats..?
Could you try Stock Player for the same file in which HW decode crashes..? Let me know whether it has the same issue or not.
Can you provide a sample file in which it crashes..? We need to check it with our other samsung & nexus test devices.
Sent from my SM-G900H using Tapatalk

Background play no longer works

Hi.
I just updated to the newest version. I love mxplayer pro. And one of my favorite things about it is the background play feature. Well it no longer works even when having it on. I am trying to play one of my videos from my Plex server and when I go to turn off the screen it no longer continues to play. Please help. Pixel XL running Android 8.0 Oreo
Frostyd241 said:
Hi.
I just updated to the newest version. I love mxplayer pro. And one of my favorite things about it is the background play feature. Well it no longer works even when having it on. I am trying to play one of my videos from my Plex server and when I go to turn off the screen it no longer continues to play. Please help. Pixel XL running Android 8.0 Oreo
Click to expand...
Click to collapse
Can you collect a bug report immediately after reproducing the issue and share here?
It will help us to identify the root cause.
Thirumalai.K said:
Can you collect a bug report immediately after reproducing the issue and share here?
It will help us to identify the root cause.
Click to expand...
Click to collapse
I am in the same situation (Pixel XL, MX Player Pro, just updated to Oreo) and background play stopped working. However, this does not consistently happen unless I am connected to a Bluetooth speaker.
I use MX Player for audio only often. This is the easiest way to reproduce the problem:
1. Connect to Bluetooth (in this case I have an Amazon Tap and I tell Alexa to connect to my phone).
2. After connecting start an MP3.
2. Press the power button to turn off the screen.
3. Wait a few seconds and the audio will stop playing.
4. Swipe to look at the notification for MX Player and note that the time in the MP3 is incrementing but no sound.
MX Player is *not* crashing. You can reopen the screen and press pause (wait) and then press play on the lock screen notification and MX Player will begin to play audio even when the screen goes back to sleep.
Note that this is not always consistent. It happens almost all the time, but I have done the above procedure and on some occasions audio will continue to play. Again, I think it happens much more often when connected to a Bluetooth speaker.
If you let me know how to collect a bug report or some sort of dev log when MX Player I will. But again, MX Player is not crashing when this happens.
I have the same issue since the last update on my nexus 5x running Android 8.
Update: it doesn't seem to happen when playing either local content, or a stream over samba. Only remote streams (I use megabox HD)
f3bruary said:
I have the same issue since the last update on my nexus 5x running Android 8.
Update: it doesn't seem to happen when playing either local content, or a stream over samba. Only remote streams (I use megabox HD)
Click to expand...
Click to collapse
This one might be different than the OP. Our developers are on it. We will try to fix ASAP.
Endroclast said:
I am in the same situation (Pixel XL, MX Player Pro, just updated to Oreo) and background play stopped working. However, this does not consistently happen unless I am connected to a Bluetooth speaker.
I use MX Player for audio only often. This is the easiest way to reproduce the problem:
1. Connect to Bluetooth (in this case I have an Amazon Tap and I tell Alexa to connect to my phone).
2. After connecting start an MP3.
2. Press the power button to turn off the screen.
3. Wait a few seconds and the audio will stop playing.
4. Swipe to look at the notification for MX Player and note that the time in the MP3 is incrementing but no sound.
MX Player is *not* crashing. You can reopen the screen and press pause (wait) and then press play on the lock screen notification and MX Player will begin to play audio even when the screen goes back to sleep.
Note that this is not always consistent. It happens almost all the time, but I have done the above procedure and on some occasions audio will continue to play. Again, I think it happens much more often when connected to a Bluetooth speaker.
If you let me know how to collect a bug report or some sort of dev log when MX Player I will. But again, MX Player is not crashing when this happens.
Click to expand...
Click to collapse
If you are not familiar about how to collect a bug report, Kindly read the sticky thread about how to collect the bug report ( https://forum.xda-developers.com/apps/mx-player/guide-how-to-collect-logcat-report-bug-t2843144 ).
You can find some more detailed additional methods on our website which can be used to collect complete system logs ( https://sites.google.com/site/mxvpen/report-an-issue ).
Thirumalai.K said:
If you are not familiar about how to collect a bug report, Kindly read the sticky thread about how to collect the bug report ( https://forum.xda-developers.com/apps/mx-player/guide-how-to-collect-logcat-report-bug-t2843144 ).
You can find some more detailed additional methods on our website which can be used to collect complete system logs ( https://sites.google.com/site/mxvpen/report-an-issue ).
Click to expand...
Click to collapse
Ok, I was able to reproduce this. Apparently this isn't as cut-and-dried as any Bluetooth speaker causes it. I connected this to my Amazon Echo Tap and the problem happened, so I collected the log linked here:
https://www.dropbox.com/s/ets5njs6rrm8c1l/report_2017-09-18_111234.zip?dl=0
However, I had trouble reproducing this problem with several other Bluetooth speakers, if that is relevant. It did happen before I knew how to collect bug reports but I wasn't able to reproduce it on any Bluetooth except the Tap this morning.
I'm using google pixel, android 8.0. Mx player ver 1.9.8
Music stop playing when I press the home button.
I'm not connected to bluetooth.
bingunginter said:
I'm using google pixel, android 8.0. Mx player ver 1.9.8
Music stop playing when I press the home button.
I'm not connected to bluetooth.
Click to expand...
Click to collapse
Have you enabled background play?
Can you provide a bug report?
Thirumalai.K said:
Have you enabled background play?
Can you provide a bug report?
Click to expand...
Click to collapse
After the recent update to MX Player Pro 1.9.8 I think all of the background play problems disappeared for me EXCEPT for when I am connected over Bluetooth to an Amazon Tap.
I have tried every combination (with no Bluetooth, Echo, Echo Dot, various generic Bluetooth speakers and the Tap) and I only see the audio in background problem when my Pixel XL is connected to the Tap.
The symptoms are the same and easy to reproduce. You can see the player still incrementing time in notifications but there is no audio. When MX Player Pro is brought back to the foreground audio starts playing again and the position in the MP3 has still been incrementing while MX Player was in the background.
I took another report from MX Player Pro, linked here (I can't put outside links because my account is too young, this is the rest of the URL without dropbox.com prepended...is there some other way I should do this?):
/s/y5k85v90jag0mbq/report_2017-09-20_094121.zip?dl=0
my issue still remains with background playback. Seems to only happen with remote streams.
f3bruary said:
my issue still remains with background playback. Seems to only happen with remote streams.
Click to expand...
Click to collapse
Hi,
Our developers already notified about the issue about the background play issue with remote streams. We will try to fix it ASAP.
You may set HW+ as default for network streams as a temporary workaround. HW+ & SW works as usual.
Other Issues Fixed by Android Security Patch for 5 Oct 2017
Thirumalai.K said:
Have you enabled background play?
Can you provide a bug report?
Click to expand...
Click to collapse
I wanted to follow up that any additional problems and weirdness with MX Player Pro after your initial fix have also been fixed by the Android 8.0.0 Security patch for October 5, 2017. Background play works for all cases I had issues with.
Endroclast said:
I wanted to follow up that any additional problems and weirdness with MX Player Pro after your initial fix have also been fixed by the Android 8.0.0 Security patch for October 5, 2017. Background play works for all cases I had issues with.
Click to expand...
Click to collapse
Thanks for the information
i still have got this issue.
Wysłane z mojego ONEPLUS A3003 przy użyciu Tapatalka
psocik said:
i still have got this issue.
Wysłane z mojego ONEPLUS A3003 przy użyciu Tapatalka
Click to expand...
Click to collapse
can you collect bug report right after the issue (from MX Player help menu) and share with us?
mx player background play via Bluetooth fixed
i encounter same problem in my huawei maye 10 lite oreo and i fixed in this way
go to developer option.... under MEDIA... turn on DISABLE USB AUDIO ROUTING...
now play background play in mx player...
---------- Post added at 09:30 AM ---------- Previous post was at 09:28 AM ----------
f3bruary said:
my issue still remains with background playback. Seems to only happen with remote streams.
Click to expand...
Click to collapse
in developer option search DISABLE USB AUDIO ROUTING and turn it on
I can report that playback pauses on bluetooth speakers (Anker SoundCore Mini) on AIMP player as soon as the screen turns off, but it works well with LineageOS Music player (or so I think it works). Phone in question is Galaxy S5 klte
It worked well in 14.1, but not in 15.1 ofc
I will try the baba.yoga suggestion
Latest update, lost background play ability
Frustrating. App just updated and I lost background playing, settings still the same. If I uninstall the app and reinstall, I get background playing for a hour or so, then it disappears again.
doctorc501 said:
Frustrating. App just updated and I lost background playing, settings still the same. If I uninstall the app and reinstall, I get background playing for a hour or so, then it disappears again.
Click to expand...
Click to collapse
This is caused by the new restriction when targetting the newer android SDKs. When the system force closes a foreground service (used to prevent it from getting killed when the device reaches low memory state), it can't be restarted again by the app itself. You have to completely force stop the MX. Then it will work again.
If it is possible, kindly collect the logs through ADB when the MX Player is getting killed by the system. It will help us to understand the issue.

Bluetooth headphones resume playback not working

Hello,
I use a pair of true wireless Soul X-shock earphones to listen to seminars when out jogging etc using background playback. (Samsung Galaxy S7 and MX Player Pro)
The play/pause function (on the earphones) works as it should if there is less than an approx 5 minute delay between button presses...
However, when the video is pause is longer than 5 minutes I find the resume function on my earphones no longer operate and background playback of the video is completely halted.
Not only that, when resuming playback on my phone screen and then pressing the home button or lock screen the video does not play in the background as it should.
I have found the only way to remedy this is to force quit MX Player Pro directly and start it up again. That way the background playback function behaves like normal again.
The problem also happens immediately if I put my ear phones back into the charging case and take them out to use them again.
I am able to use spotify without issue taking my ear phones on and off but MX Player Pro behaves very differently.
I have also noticed the background playback for MX Player Pro on the notifications bar gets killed after about 5 minutes of no playback, requiring a full restart of the app before it can come back again.
I have already added MX Player Pro to the power saving exceptions list but the issue still happens.
Is there anyway to fix this via settings or via new update?
Kiwidude333 said:
Hello,
I use a pair of true wireless Soul X-shock earphones to listen to seminars when out jogging etc using background playback. (Samsung Galaxy S7 and MX Player Pro)
The play/pause function (on the earphones) works as it should if there is less than an approx 5 minute delay between button presses...
However, when the video is pause is longer than 5 minutes I find the resume function on my earphones no longer operate and background playback of the video is completely halted.
Not only that, when resuming playback on my phone screen and then pressing the home button or lock screen the video does not play in the background as it should.
I have found the only way to remedy this is to force quit MX Player Pro directly and start it up again. That way the background playback function behaves like normal again.
The problem also happens immediately if I put my ear phones back into the charging case and take them out to use them again.
I am able to use spotify without issue taking my ear phones on and off but MX Player Pro behaves very differently.
I have also noticed the background playback for MX Player Pro on the notifications bar gets killed after about 5 minutes of no playback, requiring a full restart of the app before it can come back again.
I have already added MX Player Pro to the power saving exceptions list but the issue still happens.
Is there anyway to fix this via settings or via new update?
Click to expand...
Click to collapse
Thanks for your feedback. When you pause the playback manually, MX Player will no longer use the foreground service. So, the system may kill the app to reclaim the resources if it is required for some other process. Once it's killed by the system, it may not be able to receive the media button controls. So, you can't resume the playback from the headset. However, everything should work as expected when you open the app again. If you found any abnormal behaviour, kindly provide us with more info so that we can investigate it further for you.

Categories

Resources