xirdev / xsdk Goto Github PK
View Code? Open in Web Editor NEWSimple examples for XirSys V2 platform
Simple examples for XirSys V2 platform
Hi ,
Yesterday the SimpleWebrtc example was working just fine, by some reason, today, it stoped to work, i don't know why, i'm using the "secure : false" method to connect with my credentials (the same config that i was using yesterday when everything was working).
Currently when i try to create the room, nothing happens, i can see the ice and the common requests on the web inspector, but the room is never created, and i'm not getting any errors :(
Some ideas?
xsdk is suffering from the same issue as xirdev/xirsys-nodejs#4
I have used simplewebrc example and implement it. But i am getting the following error.
xirsys.signal.js:331 Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at constructor.send (/js/xirsys.signal.js:331:28)
at constructor.send (/js/xirsys.signal.js:409:15)
at constructor.emit (/js/xirsys.simplewebrtc.connection.js:94:2
Can any one let me know that what i am doing wrong?
I getting error when run simplewebrtc.html. I update my credentials xirsys_connect.js.
When i create room , the following error logged in chrome console.
Uncaught TypeError: Failed to construct 'RTCPeerConnection': The value provided is neither an array, nor does it have indexed properties.
at window.RTCPeerConnection (simplewebrtc.bundle.js:11371)
at new TraceablePeerConnection (simplewebrtc.bundle.js:10138)
at new PeerConnection (simplewebrtc.bundle.js:6121)
at new Peer (simplewebrtc.bundle.js:13559)
at WebRTC.createPeer (simplewebrtc.bundle.js:14436)
at constructor.joinCB (simplewebrtc.bundle.js:14161)
at constructor.onPeers (xirsys.simplewebrtc.connection.js:201)
at constructor.handleUserService (xirsys.signal.js:451)
at constructor.handleService (xirsys.signal.js:432)
at WebSocket.self.transport.onmessage (xirsys.signal.js:317)
please help me to resolve this
I am getting errors in Chrome after I successfully managed to receive token from my own server and ICE servers list as well
successful requests (shown in blue in Chrome)
xirsys.core.js:229 XHR finished loading: POST "https://domain.org/api/webrtc/signal/token".(anonymous function) @ xirsys.core.js:229
xirsys.core.js:229 XHR finished loading: GET "https://domain.org/api/webrtc/signal/list?secure=0".
Then, errors
xirsys.signal.js:238 WebSocket connection to 'wss://endpoint02.uswest.xirsys.com/ws/v2/...<long token string here>...' failed: WebSocket opening handshake was canceled
next @ xirsys.signal.js:238
init @ xirsys.signal.js:262
openSocket @ xirsys.signal.js:320
constructor @ xirsys.signal.js:87
(anonymous function) @ xirsys.signal.js:381
(anonymous function) @ xirsys.signal.js:496
xhr.onreadystatechange @ xirsys.core.js:209
Then, another one after that
signal.html:122 error: undefined
(anonymous function) @ signal.html:122
emit @ xirsys.core.js:309
onError @ xirsys.signal.js:524
self.transport.onerror @ xirsys.signal.js:314
GET https://domain.org/xsdk/examples/undefined signal.html:122 error: undefined:1
(anonymous function) @ signal.html:122
emit @ xirsys.core.js:309
onError @ xirsys.signal.js:524
self.transport.onerror @ xirsys.signal.js:314
source.onerror @ xirsys.signal.js:153
Hello guys !
I'm currently interested to use xirsys as our webRTC hosting solution. We cloned this repository and did setup our credentials inside "xirsys_connect.js" config file following the tutorial on https://xirsys.com/simplewebrtc/.
However when I run the examples (simplewebrtc.html) on my server, nothing happens (<video></video>
is empty and blank)
Here is how it looks in my chrome dev console: https://postimg.org/image/3psa1cefn/
Any ideas ?
Best,
Bug happens when 2 users are in a P2P chat, and a 3rd user requests to chat with one of them, their remote users video goes black upon receiving the request even though the 3rd party request was not responded to.
Setup webrtc.html in examples folder
Tested on Chrome Version 47.0.2526.73 (64-bit)
RTCPeerConnection.onaddstream
, which is used in xirsys.p2p.js, has been deprecated and should be replaced with RTCPeerConnection.ontrack
according to MDN.
In xirsys.simplewebrtc.js connect() method.
I would say the line $resp.apply(self, self.ref);
should instead be $resp.apply(self, [self.ref]);
(or .call). otherwise the callback $resp won't correctly receive the SimpleWebRTC object.
Ref: https://github.com/xirdev/xsdk/blob/master/lib/xirsys.simplewebrtc.js#L62
After a long time searching why my demo was not working with peers in different networks I found out that if I wrote webrtc.ref.webrtc.config.peerConnectionConfig
in the console the iceServers array was empty. I thought it was due to the signalling server overriding my iceServer url but I ended up finding that there is a bug in lines 76 and 91.
$data
must be changed to $idata
in both lines of code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.