diaspora / jsxc

Real-time chat app
www.jsxc.org
Other
22 stars 16 forks source link

WebRTC not available #131

Open ghost opened 9 years ago

ghost commented 9 years ago

Tested between me (Firefox 40) and dada (Firefox 41).

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27353054-webrtc-not-available?utm_campaign=plugin&utm_content=tracker%2F7153406&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F7153406&utm_medium=issues&utm_source=github).
zauberstuhl commented 8 years ago

@sualko Hi I am trying to debug webrtc cause it is not working right now. And to be honest I am stuck .. could you have a quick look at it maybe you have an idea.

if you do not have an account on sechat.org just create one/two here

$.fn.draggable = function() {
    console.debug("draggable disabled");
};
$.fn.resizable = function() {
    console.debug("resizable disabled");
};
jsxc.webrtc.conn.caps.hasFeatureByJid = function() {return true;}

the above is necessary to start a new call. then if I try connecting from chrome 46 to chrome 46:

init-client:

[Webrtc] please allow access to microphone and camera
jsxc-b2ddf0216aae2014d44f92a35100a6a1.js:17 onUserMediaSuccess
jsxc-b2ddf0216aae2014d44f92a35100a6a1.js:17 media ready
jsxc-b2ddf0216aae2014d44f92a35100a6a1.js:17 close dialog
VM10950:3 draggable disabled
VM10950:6 resizable disabled
jsxc-b2ddf0216aae2014d44f92a35100a6a1.js:17 [Webrtc] Use local audio device.
jsxc-b2ddf0216aae2014d44f92a35100a6a1.js:17 using audio device "Default"
jsxc-b2ddf0216aae2014d44f92a35100a6a1.js:17 [Webrtc] Initiate call
jsxc-b2ddf0216aae2014d44f92a35100a6a1.js:17 [JINGLE][log:info] a2d1b95c-afef-4f9c-a370-cde8751c686a: Changing session state to: pending
8jsxc-b2ddf0216aae2014d44f92a35100a6a1.js:17 [JINGLE][log:info] a2d1b95c-afef-4f9c-a370-cde8751c686a: Discovered new ICE candidate
jsxc-b2ddf0216aae2014d44f92a35100a6a1.js:18 > <body rid=​"501794958" xmlns=​"http:​/​/​jabber.org/​protocol/​httpbind" sid=​"b1c4d9c0-42ac-4db6-a703-7df1ce56e351">​<iq xmlns=​"jabber:​client" to=​"sechat@sechat.org/​a62d7660-0f17-4043-9623-b132237d576b" type=​"set">​…​</iq>​<iq xmlns=​"jabber:​client" to=​"sechat@sechat.org/​a62d7660-0f17-4043-9623-b132237d576b" type=​"set">​…​</iq>​<iq xmlns=​"jabber:​client" to=​"sechat@sechat.org/​a62d7660-0f17-4043-9623-b132237d576b" type=​"set">​…​</iq>​<iq xmlns=​"jabber:​client" to=​"sechat@sechat.org/​a62d7660-0f17-4043-9623-b132237d576b" type=​"set">​…​</iq>​<iq xmlns=​"jabber:​client" to=​"sechat@sechat.org/​a62d7660-0f17-4043-9623-b132237d576b" type=​"set">​…​</iq>​<iq xmlns=​"jabber:​client" to=​"sechat@sechat.org/​a62d7660-0f17-4043-9623-b132237d576b" type=​"set">​…​</iq>​<iq xmlns=​"jabber:​client" to=​"sechat@sechat.org/​a62d7660-0f17-4043-9623-b132237d576b" type=​"set">​…​</iq>​<iq xmlns=​"jabber:​client" to=​"sechat@sechat.org/​a62d7660-0f17-4043-9623-b132237d576b" type=​"set">​…​</iq>​<iq xmlns=​"jabber:​client" to=​"sechat@sechat.org/​a62d7660-0f17-4043-9623-b132237d576b" type=​"set">​…​</iq>​</body>​
jsxc-b2ddf0216aae2014d44f92a35100a6a1.js:18 < <body xmlns=​"http:​/​/​jabber.org/​protocol/​httpbind">​</body>​

an on the other-side I am only receiving some jingle-stanza no more.

Any ideas? Suggestions? Cheers

zauberstuhl commented 8 years ago

FYI; with the latest version it works in chrome 46.0.2490.71 (64-bit) and firefox 45.3.0 till it tries to establish a connection. needs more research.

zauberstuhl commented 8 years ago

@sualko I used following:

jsxc.options.RTCPeerConfig.iceServers[0].urls="stun:stun.l.google.com:19302"

caller

[Webrtc] please allow access to microphone and camera navigator.mozGetUserMedia has been replaced by navigator.mediaDevices.getUserMedia onUserMediaSuccess 
media ready 
close dialog 
[Webrtc] Use local audio device. 
using audio device "" 
[Webrtc] Initiate call 
[JINGLE][log:info] 813938f7-30be-46fe-b61d-249d5af6b40b: Changing session state to: pending 
WebRTC interfaces with the "moz" prefix (mozRTCPeerConnection, mozRTCSessionDescription, mozRTCIceCandidate) have been deprecated. 
Mandatory/optional in createOffer options no longer works! Use {"offerToReceiveAudio":true,"offerToReceiveVideo":true} instead (note the case difference)! <unknown>
[JINGLE][log:info] 813938f7-30be-46fe-b61d-249d5af6b40b: Discovered new ICE candidate

receiver

[JINGLE][log:debug] 813938f7-30be-46fe-b61d-249d5af6b40b: session-initiate 
[JINGLE][log:info] 813938f7-30be-46fe-b61d-249d5af6b40b: Initiating incoming session
[JINGLE][log:info] 813938f7-30be-46fe-b61d-249d5af6b40b: Changing session state to: pending 
WebRTC interfaces with the "moz" prefix (mozRTCPeerConnection, mozRTCSessionDescription, mozRTCIceCandidate) have been deprecated. 

It is probably a front-end bug since the receiver is in a pending state. Should there be some button appearing?

sualko commented 8 years ago

Sorry for my very late reply, I was busy at university. Currently I have to fix some more urgent bugs, but I will have a look at it as soon as possible (probably after I released a bug fix release). Please remind me, if I don't respond within a week.