Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Quick Questions on Peer Connection for Testing

26 views
Skip to first unread message

Jason Smith

unread,
Mar 5, 2013, 3:08:27 PM3/5/13
to dev-...@lists.mozilla.org
Hi Everyone,

Didn't get the chance to ask this in today's meeting, but I have some
questions on the Peer Connection API:

* What's the purpose of the onopen callback on Peer Connection?


* What's the proper way of testing a simple end to end flow using
addIceCandidate on the Peer Connection object?


* What's the proper way of testing a simple end to end flow using
updateIce on the Peer Connection object?


* What's the proper way of testing a simple end to end flow using
connectDataConnection?


--
Sincerely,
Jason Smith

Desktop QA Engineer
Mozilla Corporation
https://quality.mozilla.com

Eric Rescorla

unread,
Mar 5, 2013, 3:28:26 PM3/5/13
to Jason Smith, dev-...@lists.mozilla.org
On Tue, Mar 5, 2013 at 12:08 PM, Jason Smith <jsm...@mozilla.com> wrote:

> Hi Everyone,
>
> Didn't get the chance to ask this in today's meeting, but I have some
> questions on the Peer Connection API:
>
> * What's the purpose of the onopen callback on Peer Connection?
>
>
turns out this is an open question in the WG:
http://dev.w3.org/2011/webrtc/editor/webrtc.html#widl-RTCPeerConnection-onopen



> * What's the proper way of testing a simple end to end flow using
> addIceCandidate on the Peer Connection object?


Take all the ICE candidates out of an offer/answer (i.e., with string
manipulation)
and then feed them in with settimeout.

media/webrtc/signaling/test/signaling_unittest does somethign similar in
the C++.



>

* What's the proper way of testing a simple end to end flow using
> updateIce on the Peer Connection object?
>

We don't currently support updateIce.



* What's the proper way of testing a simple end to end flow using
> connectDataConnection?


This I don't know the answer to. Jesup?

-Ekr


>
> --
> Sincerely,
> Jason Smith
>
> Desktop QA Engineer
> Mozilla Corporation
> https://quality.mozilla.com
>
> ______________________________**_________________
> dev-media mailing list
> dev-...@lists.mozilla.org
> https://lists.mozilla.org/**listinfo/dev-media<https://lists.mozilla.org/listinfo/dev-media>
>

Jason Smith

unread,
Mar 7, 2013, 7:45:06 PM3/7/13
to Eric Rescorla, dev-...@lists.mozilla.org
Comments inline.

Sincerely,
Jason Smith

Desktop QA Engineer
Mozilla Corporation
https://quality.mozilla.com

On 3/5/2013 12:28 PM, Eric Rescorla wrote:
>
>
> On Tue, Mar 5, 2013 at 12:08 PM, Jason Smith <jsm...@mozilla.com
> <mailto:jsm...@mozilla.com>> wrote:
>
> Hi Everyone,
>
> Didn't get the chance to ask this in today's meeting, but I have
> some questions on the Peer Connection API:
>
> * What's the purpose of the onopen callback on Peer Connection?
>
>
> turns out this is an open question in the WG:
> http://dev.w3.org/2011/webrtc/editor/webrtc.html#widl-RTCPeerConnection-onopen

So this is currently exposed on the mozRTCPeerConnection object when I
inspect the object in the Web Console. Does it even have a purpose right
now? Should we unexpose it? Or does it have purpose?

>
> * What's the proper way of testing a simple end to end flow using
> addIceCandidate on the Peer Connection object?
>
>
> Take all the ICE candidates out of an offer/answer (i.e., with string
> manipulation)
> and then feed them in with settimeout.
>
> media/webrtc/signaling/test/signaling_unittest does somethign similar
> in the C++.
>
> * What's the proper way of testing a simple end to end flow using
> updateIce on the Peer Connection object?
>
>
> We don't currently support updateIce.

So this is currently exposed on the mozRTCPeerConnection object right
now when I inspected it in the Web Console. Should we unexpose it since
we don't support this yet?

>
>
> * What's the proper way of testing a simple end to end flow using
> connectDataConnection?
>
>
> This I don't know the answer to. Jesup?
>
> -Ekr
>
>
> --
> Sincerely,
> Jason Smith
>
> Desktop QA Engineer
> Mozilla Corporation
> https://quality.mozilla.com
>
> _______________________________________________
> dev-media mailing list
> dev-...@lists.mozilla.org <mailto:dev-...@lists.mozilla.org>
> https://lists.mozilla.org/listinfo/dev-media
>
>

Eric Rescorla

unread,
Mar 7, 2013, 9:27:20 PM3/7/13
to Jason Smith, dev-...@lists.mozilla.org
On Thu, Mar 7, 2013 at 4:45 PM, Jason Smith <jsm...@mozilla.com> wrote:

> Comments inline.
>
> Sincerely,
> Jason Smith
>
> Desktop QA Engineer
> Mozilla Corporationhttps://quality.mozilla.com
>
> On 3/5/2013 12:28 PM, Eric Rescorla wrote:
>
>
>
> On Tue, Mar 5, 2013 at 12:08 PM, Jason Smith <jsm...@mozilla.com> wrote:
>
>> Hi Everyone,
>>
>> Didn't get the chance to ask this in today's meeting, but I have some
>> questions on the Peer Connection API:
>>
>> * What's the purpose of the onopen callback on Peer Connection?
>>
>>
> turns out this is an open question in the WG:
>
> http://dev.w3.org/2011/webrtc/editor/webrtc.html#widl-RTCPeerConnection-onopen
>
>
> So this is currently exposed on the mozRTCPeerConnection object when I
> inspect the object in the Web Console. Does it even have a purpose right
> now? Should we unexpose it? Or does it have purpose?
>

We need to export properties for all the .on* properties because people set
them whether
or not they use them and at least for now, if they try to set nonexistent
properties they
get exceptions. So it's a compromise...



> * What's the proper way of testing a simple end to end flow using
>> addIceCandidate on the Peer Connection object?
>
>
> Take all the ICE candidates out of an offer/answer (i.e., with string
> manipulation)
> and then feed them in with settimeout.
>
> media/webrtc/signaling/test/signaling_unittest does somethign similar
> in the C++.
>
>
>
>>
>
> * What's the proper way of testing a simple end to end flow using
>> updateIce on the Peer Connection object?
>>
>
> We don't currently support updateIce.
>
>
> So this is currently exposed on the mozRTCPeerConnection object right now
> when I inspected it in the Web Console. Should we unexpose it since we
> don't support this yet?
>

That might not be a bad idea, since it wont' work if people try tu se it.

-Ekr


>
>
>
>
> * What's the proper way of testing a simple end to end flow using
>> connectDataConnection?
>
>
> This I don't know the answer to. Jesup?
>
> -Ekr
>
>
>>
>> --
>> Sincerely,
>> Jason Smith
>>
>> Desktop QA Engineer
>> Mozilla Corporation
>> https://quality.mozilla.com
>>
>> _______________________________________________
>> dev-media mailing list
>> dev-...@lists.mozilla.org
>> https://lists.mozilla.org/listinfo/dev-media
>>
>
>
>
0 new messages