Giter VIP home page Giter VIP logo

Comments (5)

joeyparrish avatar joeyparrish commented on May 18, 2024

Hrm... It's easy enough to add, and I don't mind doing it. But out of curiosity, why is it useful? I had thought that there would be two basic use cases:

  1. Adaptation always enabled or disabled, and therefore set once programmatically.
  2. Adaptation always controlled by some application UI element, and therefore set on interaction with that element.

When would you want to query the state? How would your application lose track of whether or not adaptation was enabled?

from shaka-player.

sanbornhilland avatar sanbornhilland commented on May 18, 2024

I agree with you that it is easy enough to keep track of but if it's ever ambiguous what the starting state is or just not known what the starting state is, it seems like there is the potential to get out of sync. To me it seems like it's the responsibility of the player to manage its own state and that way whoever is using it can't ever get out of sync or make the wrong assumption about what state it is in.

Also, I'm happy to submit a pull request so you can concentrate on higher priority stuff. Maybe this won't be generally considered useful.

from shaka-player.

joeyparrish avatar joeyparrish commented on May 18, 2024

I'm not sure it would get out of sync, though. It's easy to set explicitly as soon as Player is created.

In any case, this debate is purely philosophical. I don't object to the feature. Please feel free to submit a pull request.

It may be a bit more pain than contributing to the typical open-source project, but Google does require a one-time contributor agreement as outlined in CONTRIBUTING.md.

And thanks for offering to contribute. You're the first!

from shaka-player.

Awais-cb avatar Awais-cb commented on May 18, 2024

this is the way of checking if abr is enabled or not

shakaPlayer.getConfiguration().abr.enabled

it returns true or false accordingly.

from shaka-player.

joeyparrish avatar joeyparrish commented on May 18, 2024

@Awais-cb, this thread was closed 2.5 years ago. Please try not to reopen very old threads. Shaka Player looks very different today than it did in 2015. Thanks!

from shaka-player.

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.