Comments (2)
I wonder if this is what #34 was trying to describe.
Anyways, reproduction steps:
1. Play the 2nd-4th audio item in the demo
2. Back out of the player activity
3. Select the 1st item
- What I was seeing was a bug in the demo. @AngelJedi would you upload your reproduction steps
Expected Result:
The 1st item plays correctly
Actual Result:
The playlist resumes where it was previously playing
from playlistcore.
It looks like I was in the wrong area for what was happening and I saw something out of place, but it wasn't the cause.
The real culprit seems to be line #1227 of PlaylistServiceCore which calls performPause() in an invalid state on the media player if I pass a seekPosition other than 0 into the play() method of my playlist manager.
After calling that method the media player outputs these two lines into my log:
E/MediaPlayer: pause called in state 8, mPlayer(0x7f0758dac0)
E/MediaPlayer: error (-38, 0)
Then the onError method of the MediaListener is called, which tries to retry playback a number of times, each time causing a state error on the media player, and then eventually the next item is queued up for playback because of the error.
from playlistcore.
Related Issues (20)
- Where to show a dialog warning if I want to check for mobile or wifi internet HOT 1
- Fatal Exception: android.app.RemoteServiceException HOT 2
- Unexpected media repeat
- Disconnected from remote media player api when no other media player api is available causes unexpected behavior
- question for playlist core bro
- How to add a single audio and get a playlist HOT 6
- Memory leaking
- Override onerror in DefaultPlaylistHandler
- Support Intent.ACTION_MEDIA_BUTTON broadcasts. HOT 2
- Where i get getAudioSessionId ? HOT 1
- How to loop playlist ! HOT 1
- How to update current play list
- IllegalStateException: Not allowed to start service Intent { act=com.devbrackets.android.playlistcore.start_service... }: app is in background HOT 2
- Migrate Publications to Maven Central
- Crash caused by Pending Intent Behaviour
- Android 12 Crash HOT 1
- Repeat Mode ? HOT 1
- Android 13 Media Notification
- MediaControls togglePlayPause notification will fire twice per click HOT 3
- Update to AndroidX and remove jetifier HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playlistcore.