Coder Social home page Coder Social logo

Comments (3)

henbos avatar henbos commented on August 26, 2024

One possibility discussed, but without consensus from editors present, was to define metrics such that they could be implemented, but whenever not implemented for a particular source, you'd just return empty dictionary (somewhat related issue about feature detection: #101)

from mediacapture-extensions.

henbos avatar henbos commented on August 26, 2024

An implementation update here on the Chromium side:

While all types of tracks share the same stats logic for delivered and discarded frames (which happen in the renderer), and the same logic for drops triggered around the VideoTrackAdapter parts of the code, there is one kind of frame drop that needs additional implementation effort on a per-source basis.

And that is if the frame was dropped by the source prior to reaching the renderer process. For example if the capturer process runs out of buffers, that's a dropped frame that needs to be signalled. E.g. it's one of those rare circumstances that totalFrames increments but neither deliveredFrames or discardedFrames do.

So it's not true that there is no additional implementation effort in supporting new sources, but it is only needed in cases where drops can happen by the source.

from mediacapture-extensions.

henbos avatar henbos commented on August 26, 2024

I'm not convinced that sources that are not backed by a real-time device is able to drop frames. For example a canvas based track would only generate frames in a pace that it is able to achieve, so there would be no need to drop the frame before delivery, and thus no extra implementation effort regarding keeping track of dropped frames for these types of sources.

That's just a theory though

from mediacapture-extensions.

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.