Ovveride SDPUtils.generateSessionId()

11 views
Skip to first unread message

Ar A

unread,
Feb 19, 2018, 2:17:58 AM2/19/18
to discuss-webrtc
- [*] I have provided browser name, version and adapter.js version
- [*] This issue only happens when adapter.js is used

Chrome Version 64.0.3282.140 64bits

Hi all, 
I have 2 questions,

1st how to create Peerconnection from adapter.js 

like   var pc1 = new Peerconnection(null) ?

i could not find any exemple for !


2nd  i would like make hard coded session id in adapter.js

SDPUtils.generateSessionId = function() {
// return Math.random().toString().substr(2, 21);
return 6550572165951737818;
}


I am not a english native speaker , Sorry for my english 

Philipp Hancke

unread,
Feb 19, 2018, 2:34:07 AM2/19/18
to WebRTC-discuss
2018-02-17 15:39 GMT+01:00 Ar A <andreaz...@hotmail.fr>:
- [*] I have provided browser name, version and adapter.js version
- [*] This issue only happens when adapter.js is used

Chrome Version 64.0.3282.140 64bits

Hi all, 
I have 2 questions,

1st how to create Peerconnection from adapter.js 

like   var pc1 = new Peerconnection(null) ?

i could not find any exemple for !

var pc1 = new RTCPeerConnection();
adapter doesn't invent its own APIs, just uses the w3c webrtc ones.

 
2nd  i would like make hard coded session id in adapter.js

SDPUtils.generateSessionId = function() {
// return Math.random().toString().substr(2, 21);
return 6550572165951737818;
}

This would only modify the session ID in Microsoft Edge. It is very unlikely that you want to touch the SDP session id in the o= line at all.
But then adapter.js is not going to provide you with an API for doing so (and there is no standard API)

 

I am not a english native speaker , Sorry for my english 

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/b98ee01e-fb03-45e4-882c-e88a2170635b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages