Giter Site home page Giter Site logo

multistream handling about rtcstats-server HOT 7 CLOSED

fippo avatar fippo commented on August 19, 2024
multistream handling

from rtcstats-server.

Comments (7)

ggarber avatar ggarber commented on August 19, 2024

+1 although we can still add a feature to those tracks saying "numberOfStreamsInSameConnection"

from rtcstats-server.

fippo avatar fippo commented on August 19, 2024

we have usingMultistream and maxStreams :-)

from rtcstats-server.

fippo avatar fippo commented on August 19, 2024

going to tackle this now that I have a use-case. Currently we create one database row of features for each peerconnection. extractTrack() searches for a kind of track and returns all stats related to that track.

This mainly affects the features around

['audio', 'video'].forEach(kind => {
    ['send', 'recv'].forEach(direction => {
        module.exports[kind + capitalize(direction)] = function(client, peerConnectionLog) {

Additionally we need to have a stream (composed of an audio+video track) duration. We need to do it both for incoming and outgoing features, e.g. if the local client does both screensharing and video on the same connection.

Instead of having one row per peerconnection, we'll have one row per peerconnection and remote stream. This will require changing existing queries in order to avoid taking things like the duration twice when there are two remote streams. Rows with an identical peerconnection id should not be counted twice in those queries.

This also raises some questions about the database design, whether the current duplication of page features into each peerconnection row is ok but... its convenient.

from rtcstats-server.

fippo avatar fippo commented on August 19, 2024

an additional thing to take into consideration: a stream may not be active all the time.
How does that

  1. affect averages like bitrate (ignore 0s?)
  2. duration -- it can not be calculated as last - first

from rtcstats-server.

fippo avatar fippo commented on August 19, 2024

wire protocol bump required: fippo/rtcstats#83
WIP here

from rtcstats-server.

fippo avatar fippo commented on August 19, 2024

note: this needs to be stream-based, not track-based.

from rtcstats-server.

fippo avatar fippo commented on August 19, 2024

this is now on the master branch.

from rtcstats-server.

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.