Giter Site home page Giter Site logo

Comments (3)

ryanheise avatar ryanheise commented on July 23, 2024

Thanks, yes I believe that the lag will affect things, although as an additional safeguard, the reported position should be clipped to the duration.

On the naming issue, playbackStateStream is a getter hence it does not need the word get in its name, while getPositionStream is a normal method that takes a parameter. Effective Dart doesn't specifically advise on a naming convention for this, although the de-facto standard for this seems to be to use the word get if its a method.

from just_audio.

ryanheise avatar ryanheise commented on July 23, 2024

In version 0.2.0, the behaviour has been changed so that if the duration is unknown, the raw position will be returned (e.g. in streaming), while if the duration is known, the position will be clipped at min(position, duration). This accounts for the unreliability of the position with respect to the duration.

from just_audio.

github-actions avatar github-actions commented on July 23, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with just_audio.

from just_audio.

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.