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

getStats interface #82

Closed
aboba opened this issue May 9, 2014 · 5 comments
Closed

getStats interface #82

aboba opened this issue May 9, 2014 · 5 comments
Labels

Comments

@aboba
Copy link
Contributor

@aboba aboba commented May 9, 2014

From Shijun Sun:

I’ve been thinking more about the getStats() interface.

One possible way to separate it from other objects is probably to define it as

Interface RTCStats{
void getStats(object, success_callback, failure_callback);
}

The “object” can be RtpSender, RtpReceiver, IceTransport, DtslTransport, SdesTransport, etc. and can be extended without changing other existing objects.

@robin-raymond
Copy link
Contributor

@robin-raymond robin-raymond commented May 9, 2014

Might be even better as a Promise result, but I like it.

@martinthomson
Copy link
Member

@martinthomson martinthomson commented May 9, 2014

I think that duck-typing is likely to be better, as in:

interface RTCStatsSource {
  Promise<RTCStats> getStats();
};
interface RTCRtpSender implements RTCStatsSource;
@aboba
Copy link
Contributor Author

@aboba aboba commented May 11, 2014

How about this?

typedef (RTCRtpSender or RTCRtpReceiver or RTCDtlsTransport or RTCIceTransport or RTCSctpTransport) RTCStatsObject;
interface RTCStats {
Promise getStats (RTCStatsObject object, RTCStatsCallback successCallback, RTCErrorCallback failureCallback);
};

robin-raymond pushed a commit to robin-raymond/ortc that referenced this issue May 14, 2014
w3c#59

-Fixes for error handling, as described in Issue 75
w3c#75

- Fixes for miscellaneous NITs, as described in Issue 76
w3c#76

- Enable retrieval of the SSRC to be used by RTCP, as described in Issue 77
w3c#77

- Support for retrieval of audio and video capabilities, as described in Issue 81
w3c#81

- getStats interface updated, as described in Issue 82
w3c#82

- Partially addressed SVC issues described in Issue 83
w3c#83

- Partially addressed statistics update issues described in Issue 85
w3c#85
@robin-raymond
Copy link
Contributor

@robin-raymond robin-raymond commented May 14, 2014

Stats are still a mess in current spec. I like the way martin did it.

@aboba
Copy link
Contributor Author

@aboba aboba commented Jun 15, 2014

Shijun's proposal added in the latest editor's draft:
http://ortc.org/wp-content/uploads/2014/06/ortc.html

@aboba aboba closed this Jun 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants