GithubHelp home page GithubHelp logo

Comments (2)

brianwernick avatar brianwernick commented on June 13, 2024

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.

AngelJedi avatar AngelJedi commented on June 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.