Giter Club home page Giter Club logo

Comments (4)

richtr avatar richtr commented on August 18, 2024

Also see @domenic's feedback @ #48 (comment).

from mediasession.

richtr avatar richtr commented on August 18, 2024

@domenic Commit 875f2a7 replaces 'participating media elements' with 'audio-producing objects' to provide what I think is a good abstraction for future 'audio-producing object' additions (e.g. enabling AudioContext-based media focus pending the outcomes of discussion at #48 & #50).

If there are further issues or, if you really want to instead see this written as per your suggestion at #48 (comment), then please re-open this issue or create a new issue as you feel is appropriate.

Thanks!

from mediasession.

domenic avatar domenic commented on August 18, 2024

I mean, I think that adding switch statements ("If audio-producing object is not a media element") throughout the spec is kind of sad, and will only get sadder as those parts get fleshed out to support AudioContext, and AudioContext becomes more tied in to all this. But I'll leave that kind of factoring decision for you guys.

from mediasession.

foolip avatar foolip commented on August 18, 2024

I agree this kind of type testing is a sign that the layering isn't complete. I'm not sure it would be implemented with a type test and cast though, so perhaps trying to implement this will inform how it should be expressed in the spec.

from mediasession.

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.