[Webrtc] [mozilla 26] Getting unhanded state type: 1 after adding remote stream
Hi, I am working on a webRTC application. So far, I am able to make call b/w Chrome to Chrome and mozilla to mozilla. But sometimes mozilla to mozilla and almost everytime mozilla to chrome or vice-versa not working.
I see that there is connection being made but audio/video stream are not being played. The onaddstream callback get triggered, but just after that "Unhandled state type: 1" warning get appeared.
Please help.
here is my code of onaddstream.
pc.onaddstream = function(event) { // TODO: Finalize this API rtc.fire('add remote stream', event.stream, id); setAppLog(, 'add remote stream : ' + event.stream); console.log( ' add remote stream : ' + event.stream); };
//On console.. 20:25:32.895 Unknown property 'overflow-wrap'. Declaration dropped. connect.css:56 20:25:32.895 Unknown property 'spacing'. Declaration dropped. connect.css:76 20:25:32.896 Unknown property 'spacing'. Declaration dropped. connect.css:240 20:25:32.896 Error in parsing value for 'padding'. Declaration dropped. connect.css:250 20:25:32.896 Unknown pseudo-class or pseudo-element '-webkit-slider-thumb'. Ruleset ignored due to bad selector. connect.css:302 20:25:32.896 Unknown property '-moz-box-shadow'. Declaration dropped. connect.css:326 20:25:32.896 Error in parsing value for 'background'. Declaration dropped. connect.css:329 20:25:32.896 Unknown property '-moz-border-radius'. Declaration dropped. connect.css:332 20:25:32.897 SyntaxError: Using //@ to indicate source map URL pragmas is deprecated. Use //# instead jquery.min.js:1 20:25:33.453 Use of getPreventDefault() is deprecated. Use defaultPrevented instead. jquery.min.js:5 20:25:33.529 [object HTMLHeadingElement] webrtcconnection.js:51 20:25:33.532 "This appears to be Firefox" adapter.js:17 20:25:33.829 Unknown property 'box-sizing'. Declaration dropped. video 20:25:36.445 "rtc.createStream : [object Object]" webrtc.io.js:338 20:25:37.530 "rtc.on get_peers : [object Object]" webrtc.io.js:172 20:25:39.995 "rtc on ready " webrtc.io.js:476 20:25:40.221 "rtc.createPeerConnection : 71b80816-3832-2b33-9301-b04db3a561fb" webrtc.io.js:246 20:25:40.222 "rtc.addStreams : [object LocalMediaStream]" webrtc.io.js:389 20:25:40.223 "createDataChannel 71b80816-3832-2b33-9301-b04db3a561fb" webrtc.io.js:434 20:25:40.224 "rtc.sendOffer : 71b80816-3832-2b33-9301-b04db3a561fb" webrtc.io.js:287 20:25:40.225 "sendOffer : 71b80816-3832-2b33-9301-b04db3a561fb" webrtc.io.js:229 20:25:41.180 "rtc.on receive_answer : [object Object]" webrtc.io.js:217 20:25:41.181 "rtc.receiveAnswer : 71b80816-3832-2b33-9301-b04db3a561fb" webrtc.io.js:332 20:25:41.580 " ADDING REMOTE STREAM... + 71b80816-3832-2b33-9301-b04db3a561fb : [object MediaStream]" webrtcconnection.js:573 20:25:41.586 [object HTMLVideoElement] webrtcconnection.js:576 20:25:41.601 " Remote stream added" webrtcconnection.js:671 20:25:41.603 " add remote stream : [object MediaStream]" webrtc.io.js:276 20:25:41.620 Unhandled state type: 1
Thanks R.
Alla svar (1)
Hi R,
Note: If the answer is not found here, I would certainly recommend going to stackoverflow.com and posting your question. http://stackoverflow.com/questions/ta.../webrtc
- What version of the WebRTC API are you using, check the streaming api to see if its up to date
- The spacing error, maybe try the W3C Validator will help find why 'spacing' css value is not recognized
- Found this discussion on the error, it looks like it is a mismatched json standard between the browsers? https://groups.google.com/forum/#!top.../W3_dOXyEBBc
- would it be an unhandled object in that "rtc.fire()" call?
- This discussion has how to turn on WebRTC degugging on: https://groups.google.com/forum/#!top.../FrQE1OV7y38