MediaPlayer cutting off playback too early on Lollipop when Screen is off

后端 未结 2 1867
情歌与酒
情歌与酒 2021-01-03 05:15

I\'ve been running into an issue with the MediaPlayer on Lollipop devices. Basically when the device screen is off (i.e. user locked the device) the playback continues, but

2条回答
  •  别那么骄傲
    2021-01-03 06:19

    Ok it looks like the issue is Android 5.0.1's experimental MediaPlayer called NuPlayer. NuPlayer is being enabled by default on all Android 5.0.1 devices and is only disabled through Developer Options. I've filed a bug against Android here: https://code.google.com/p/android/issues/detail?id=94069&thanks=94069&ts=1420659450

    Here's a sample email you can send your users when they face issues with Media playback on Android 5.0.1 devices:

    It looks like this might be a bug on Android's new experimental MediaPlayer called NuPlayer. To fix this, please follow these steps:

    1. Go to Android Settings
    2. Go to "About Phone"
    3. Scroll down to "Build Number" and tap the Build number 7 times.
      • You'll see a message saying "you are now X steps away from being a developer".
      • After tapping it 7 times it will say "You are now a developer!"
    4. Go back to the main settings screen and you'll see a new option called "Developer Options" right above "About Phone"
    5. Go into Developer Options and Unselect "Use NuPlayer (experimental)" under the Media section.

提交回复
热议问题