Access to PeerConnection object or wrapper for getStats API

191 views
Skip to first unread message

Nick Foster

unread,
Apr 18, 2013, 2:04:15 PM4/18/13
to doub...@googlegroups.com
I was wondering if there was an easy or suggested way at getting access to the peer connection object from either the initialized sipStack or call objects.

I want to start to play around with accessing the stats that are available via the getStats API
that is starting to show up in Chrome.


In the end I think a function on the call object would be nice but a way I can do now to just get access to the peerConnection object so I can call the getStats API would be helpful. I have been looking around the code base and don't see a good way of getting at the __o_pc that is stored on the tmedia_session_jsep object.

Thanks for any advice,
- Nick

ph wie

unread,
May 7, 2014, 4:25:52 AM5/7/14
to doub...@googlegroups.com
Hi Nick,

How did you end up using the peer connection object?

Nick Foster

unread,
May 7, 2014, 9:39:38 AM5/7/14
to doub...@googlegroups.com
Never got around to getting it for sipml5. We ended up going with a different signaling platform.


On Wed, May 7, 2014 at 1:25 AM, ph wie <weissen...@gmail.com> wrote:
Hi Nick,

How did you end up using the peer connection object?

--
You received this message because you are subscribed to the Google Groups "discuss-doubango" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ph Wie

unread,
Jun 16, 2014, 3:22:28 AM6/16/14
to doub...@googlegroups.com
Thanks for you reply. FWIW I ended up accessing the PeerConnection like this:

var peer_connection = stack.o_stack.o_layer_dialog.ao_dialogs[1].o_msession_mgr.ao_sessions[0].o_pc

The source is not very well documented and there probably is a better way to do it though.
Reply all
Reply to author
Forward
0 new messages