Giter Club home page Giter Club logo

Comments (6)

valbok avatar valbok commented on September 16, 2024

Thanks for ideas.

Introduce 'SeekingState'

Seems SeekingState is sufficient.

But just a note: states was meant to be updated immediately, it is not async, so when you call play(), it is in PlayingState right after.
(the same as in Qt), but media status is LoadingMedia -> LoadedMedia.
Media statuses are async by default.

We would also use LoadingMedia -> LoadedMedia while seeking, or SeekingMedia -> LoadedMedia?

from qtavplayer.

ElderOrb avatar ElderOrb commented on September 16, 2024

hmmm... right, just checked QtAV too - it also has just 3 states. In this case adding SeekingMedia into MediaState seems like right approach.

from qtavplayer.

valbok avatar valbok commented on September 16, 2024

also, we can also create signals like
started()
stopped()
paused()
seeked(pos)

had this idea, but decided to keep stateChanged(state) instead

from qtavplayer.

ElderOrb avatar ElderOrb commented on September 16, 2024

sure, it would make API less confusing for newcomers. As for me - I'm happy with listening for stateChanged / mediaStatusChanged (for seek)

from qtavplayer.

valbok avatar valbok commented on September 16, 2024

added this #38

from qtavplayer.

valbok avatar valbok commented on September 16, 2024

#49

from qtavplayer.

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.