Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!init) {
- pc.createOffer().then(function(offer) {
- log("offer created! ")
- return pc.setLocalDescription(offer);
- })
- .then(function() {
- log("offer send! ")
- window.mySocket.send(JSON.stringify(pc.localDescription));
- })
- .catch(function(reason) {
- log(reason)
- });
- }
Add Comment
Please, Sign In to add comment