Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need API to read the CSRC on received tracks #4

Closed
fluffy opened this issue Oct 17, 2014 · 6 comments
Closed

Need API to read the CSRC on received tracks #4

fluffy opened this issue Oct 17, 2014 · 6 comments

Comments

@fluffy
Copy link
Contributor

fluffy commented Oct 17, 2014

See section 4 of rtp-usage

@alvestrand
Copy link
Contributor

More information needed.

@aboba
Copy link
Contributor

aboba commented Nov 21, 2014

The following proposal (involving polling) was put forward to support retrieval of both the mixer-to-client audio level as well as the CSRC list. Although some people expressed interest, overall it was not considered a "must have" for WebRTC 1.1, let alone WebRTC 1.0:

partial interface RTCRtpReceiver {
sequence getContributingSources ();
};

dictionary RTCRtpContributingSource {
DOMHiResTimeStamp timestamp;
unsigned long csrc;
byte audioLevel;
};

@fluffy
Copy link
Contributor Author

fluffy commented Jul 31, 2015

@alvestrand - would stats be a reasonable place to put this or should it be RTCRtpReceiver ?

@fluffy
Copy link
Contributor Author

fluffy commented Jul 31, 2015

The use case for this BTW is that this is the best way to drive the active speaker indication in a conference roster list.

@aboba
Copy link
Contributor

aboba commented Jul 31, 2015

It would extend RTCRtpReceiver, like this:

Contributing Sources

The getContributingSources method extends the RTCRtpReceiver object, providing information on the sources contributing to an incoming media stream.

partial interface RTCRtpReceiver {
sequence getContributingSources ();
};

Methods

getContributingSources
Retrieve the sequence of contributing sources.

No parameters.
Return type: sequence

dictionary RTCRtpContributingSource

dictionary RTCRtpContributingSource {
DOMHiResTimeStamp timestamp;
unsigned long csrc;
byte audioLevel;
};

Dictionary RTCRtpContributingSource Members

audioLevel of type byte,
The audio level of the contributing source. Value is between 0 and -127 representing the contributing source dBov value, as described in [RFC6465]

csrc of type unsigned long,
The contributing source.

timestamp of type DOMHiResTimeStamp,

On Jul 31, 2015, at 08:31, Cullen Jennings <[email protected]mailto:[email protected]> wrote:

@alvestrandhttps://github.com/alvestrand - would stats be a reasonable place to put this or should it be RTCRtpReceiver ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-126725763.

@aboba
Copy link
Contributor

aboba commented Jul 31, 2015

It can be used to determine a list of audio volume generators, but determining the dominant speakers is probably best done using other techniques. See:
https://jitsi.org/publications/nossdav2015lastn.pdf

On Jul 31, 2015, at 08:32, Cullen Jennings [email protected] wrote:

The use case for this BTW is that this is the best way to drive the active speaker indication in a conference roster list.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants