Coder Social home page Coder Social logo

apprtc-node-server's People

Contributors

coolwr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apprtc-node-server's Issues

No value for ICE server url

I tried running this server in AWS ubuntu 14.04
When i set url in my android app to point 3000 port.
I am getting following error.

Room JSON parsing error:
org.json.JSONExceptopm: No value for ice_server_url

I can run it on browser either.

Failed to load Turn Server

(apprtc.debug.js:1960) Failed to load turn:22.45.15.162:3478/turn?username=475795&key=itisgood: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

I am using those settings, is there any problem in my configuration file ?

var constants = {
LOOPBACK_CLIENT_ID: 'LOOPBACK_CLIENT_ID',
TURN_BASE_URL: 'turn:22.45.15.162:3478',
TURN_URL_TEMPLATE: '%s/turn?username=%s&key=%s',
CEOD_KEY: 'itisgood',
WSS_HOST_ACTIVE_HOST_KEY: 'wss_host_active_host', //memcache key for the active collider host.
WSS_HOST_PORT_PAIRS: ['apprtc-ws.webrtc.org:443', 'apprtc-ws-2.webrtc.org:443'],
RESPONSE_ERROR: 'ERROR',
RESPONSE_UNKNOWN_ROOM: 'UNKNOWN_ROOM',
RESPONSE_UNKNOWN_CLIENT: 'UNKNOWN_CLIENT',
RESPONSE_ROOM_FULL: 'FULL',
RESPONSE_DUPLICATE_CLIENT: 'DUPLICATE_CLIENT',
RESPONSE_SUCCESS: 'SUCCESS',
RESPONSE_INVALID_REQUEST: 'INVALID_REQUEST'
};

Thanks in advance, i will appreciate any help.. i am tired of this issue now.

Record video

Is it possible to record this video? If yes how we can achieve this? Any help will be great.

no turn server

No TURN server; unlikely that media will traverse networks. If this persists please report it to [email protected].

please provide actual fix please

turn server error in apprtc.debug.js

(apprtc.debug.js:1960) Failed to load turn:22.45.15.162:3478/turn?username=475795&key=itisgood: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
I am using those settings, is there any problem in my configuration file ?

why apprtc.debug.js test turn server with xmlhttprequest ?

var constants = {
LOOPBACK_CLIENT_ID: 'LOOPBACK_CLIENT_ID',
TURN_BASE_URL: 'turn:22.45.15.162:3478',
TURN_URL_TEMPLATE: '%s/turn?username=%s&key=%s',
CEOD_KEY: 'itisgood',
WSS_HOST_ACTIVE_HOST_KEY: 'wss_host_active_host', //memcache key for the active collider host.
WSS_HOST_PORT_PAIRS: ['apprtc-ws.webrtc.org:443', 'apprtc-ws-2.webrtc.org:443'],
RESPONSE_ERROR: 'ERROR',
RESPONSE_UNKNOWN_ROOM: 'UNKNOWN_ROOM',
RESPONSE_UNKNOWN_CLIENT: 'UNKNOWN_CLIENT',
RESPONSE_ROOM_FULL: 'FULL',
RESPONSE_DUPLICATE_CLIENT: 'DUPLICATE_CLIENT',
RESPONSE_SUCCESS: 'SUCCESS',
RESPONSE_INVALID_REQUEST: 'INVALID_REQUEST'
};

Thanks in advance, i will appreciate any help.. i am tired of this issue now.

Failed to execute 'pushState' on 'History'

I got this error when change from HTTP > HTTPS.

Failed to start signaling: Failed to execute 'pushState' on 'History': A history state object with URL 'http://172.16.126.237:3000/r/107599974?' cannot be created in a document with origin 'https://172.16.126.237:3000'.

Ice server url necessary with last version of android client

I use this client for android system, i can connect to appr.tc or apprtc.appspot without problem, but i need my own server and this apprtc node server is a very good option, but with this android client is necesary add a new parameter in the json returned by the /join/ post event, if you compare the json returned from the other two server with this one, i think the json is a bit obsolete.
I had modify the routes/index.js file with the next code:

var iceServerUrl = "https://Your_ice_server";

var params ={
[...]
'ice_server_url': iceServerUrl
};
Maybe this is not a good solution, but a working solution.

Error in firefox

I have integrated this code and it was working fine before.
But now it is showing below error :
Error: Mandatory/optional in createOffer options no longer works! Use {"offerToReceiveAudio":true,"offerToReceiveVideo":true} instead (note the case difference)!

My firefox version is : 43.0
Any help will be great.

Server not workign with iOS app ?

Using demo server: https://apprtc.appspot.com :-
Everything is working fine in my both Android and iOS app,

  1. Creating room from iOS and joining with iOS,
  2. Creating room from Android and joining with iOS,
  3. Creating room from iOS and joining with Android,
  4. Creating room from Android and joining with Android,

Using This server (We set-up this server on our local) :-
Working fine only in Android app, Not in iOS app ?

  1. Creating room from Android and joining with Android is working.
    But in iOS that we have cloned from https://github.com/ISBX/apprtc-ios
    **1. Creating room from iOS and joining with iOS is not working ?
  2. Creating room from iOS and joining with Android is not working ?**
  3. Creating room from Android and joining with iOS and creating room from Android and joining with Android is working.

TURN_BASE_URL

I setup python version && nodejs server .
Both are running well..
but when i try to http://128.199.104.57:3000/
Response " NO TURN SERVER "
Maybe TURN_BASE_URL make some this problem.

TURN_BASE_URL: 'https://computeengineondemand.appspot.com',
TURN_URL_TEMPLATE: '%s/turn?username=%s&key=%s',
CEOD_KEY: '4080218913',

This is not work at all.

another sample. I referece .

http://io.diveinedu.com/2015/02/05/%E7%AC%AC%E5%85%AD%E7%AB%A0-WebRTC%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%90%AD%E5%BB%BA.html

TURN_BASE_URL = 'http://apprtc.diveinedu.com'
TURN_URL_TEMPLATE = '%s/turn?username=%s&key=%s'
CEOD_KEY = 'diveinedu'

this is working well..

I would like to use https://computeengineondemand.appspot.com or own custom webserver.

If someone know how to fix this issue.

let me know thanks.

Turn server connect procedure ?

as you see i have change my turn server url but its not run in my tern server

var constants = {
LOOPBACK_CLIENT_ID: 'LOOPBACK_CLIENT_ID',
TURN_BASE_URL: 'https://192.168.1.24',
TURN_URL_TEMPLATE: '%s/turn?username=%s&key=%s',
CEOD_KEY: 'irshad',
WSS_HOST_ACTIVE_HOST_KEY: 'wss_host_active_host', //memcache key for the active collider host.
WSS_HOST_PORT_PAIRS: ['apprtc-ws.webrtc.org:443', 'apprtc-ws-2.webrtc.org:443'],
RESPONSE_ERROR: 'ERROR',
RESPONSE_UNKNOWN_ROOM: 'UNKNOWN_ROOM',
RESPONSE_UNKNOWN_CLIENT: 'UNKNOWN_CLIENT',
RESPONSE_ROOM_FULL: 'FULL',
RESPONSE_DUPLICATE_CLIENT: 'DUPLICATE_CLIENT',
RESPONSE_SUCCESS: 'SUCCESS',
RESPONSE_INVALID_REQUEST: 'INVALID_REQUEST'

};

Websocket Error

I run the server on my localhost but it gives me these errors:
WebSocket open error: WebSocket error.
WebSocket register error: WebSocket error.
what is the problem and how can I fix it?

own Turn,wss server

hello..
where and what changes required in this for own wss and own turn server ?
Thanks

Trigger end call after 5 mins

Hi is it possible to end call after 5 min. So maximum two users can call for 5 minutes.
And also is there any way to close video and only voice chat?

Improper JSON Response

I am using the native project at https://github.com/ISBX/apprtc-ios. It works perfect for video call from device to device (iPad to iPhone).

However if I deploy the apprtc-node-server on my local computer & point to this server (http://192.168.11.8:3000) instead of https://apprtc.appspot.com & then If I go through following steps:

  1. Joining a room (giving a new random name) from iPhone
  2. Joining the same room from iPad generates an improper JSON from server.

It crashes at the following point:

Class Name: NSDictionary+ARDUtilites
Method Name: dictionaryWithJSONString
Line : NSParameterAssert(jsonString.length > 0);

It fails to parse the JSON returned from server, following is a sample JSON retuned:

"{"type":"offer","sdp":"v" = "0\r\no=- 5507084124527093233 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE audio video\r\na=msid-semantic: WMS ARDAMS\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 127 126\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:DZr4ZWhecIaugVsS\r\na=ice-pwd: CvefDFj/aFcKkqvnBc6JwWS\r\na=fingerprint:sha-256 64:6A:92:78:54:30:32:7F:A8:A8:53:0B:D8:34:B8:0B:89:84:F8:75:21:51:01:AE:A1:B0:5A:49:21:D7:4D:15\r\na=setup:actpass\r\na=mid:audio\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=sendrecv\r\na=rtcp-mux\r\na=rtpmap:111 opus/48000/2\r\na=fmtp:111 minptime=10; useinbandfec=1\r\na=rtpmap:103 ISAC/16000\r\na=rtpmap:104 ISAC/32000\r\na=rtpmap:9 G722/8000\r\na=rtpmap:102 ILBC/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:106 CN/32000\r\na=rtpmap:105 CN/16000\r\na=rtpmap:13 CN/8000\r\na=rtpmap:127 red/8000\r\na=rtpmap:126 telephone-event/8000\r\na=maxptime:60\r\na=ssrc:2079863351 cname:oO76JWYDlPZLliIf\r\na=ssrc:2079863351 msid:ARDAMS ARDAMSa0\r\na=ssrc:2079863351 mslabel:ARDAMS\r\na=ssrc:2079863351 label:ARDAMSa0\r\nm=video 9 UDP/TLS/RTP/SAVPF 100 101 116 117 96\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:DZr4ZWhecIaugVsS\r\na=ice-pwd: CvefDFj/aFcKkqvnBc6JwWS\r\na=fingerprint:sha-256 64:6A:92:78:54:30:32:7F:A8:A8:53:0B:D8:34:B8:0B:89:84:F8:75:21:51:01:AE:A1:B0:5A:49:21:D7:4D:15\r\na=setup:actpass\r\na=mid:video\r\na=extmap:2 urn:ietf:params:rtp-hdrext:toffset\r\na=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:4 urn:3gpp:video-orientation\r\na=sendrecv\r\na=rtcp-mux\r\na=rtpmap:100 VP8/90000\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack\r\na=rtcp-fb:100 nack pli\r\na=rtcp-fb:100 goog-remb\r\na=rtpmap:101 VP9/90000\r\na=rtcp-fb:101 ccm fir\r\na=rtcp-fb:101 nack\r\na=rtcp-fb:101 nack pli\r\na=rtcp-fb:101 goog-remb\r\na=rtpmap:116 red/90000\r\na=rtpmap:117 ulpfec/90000\r\na=rtpmap:96 rtx/90000\r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 2961773505 3335171879\r\na=ssrc:2961773505 cname:oO76JWYDlPZLliIf\r\na=ssrc:2961773505 msid:ARDAMS ARDAMSv0\r\na=ssrc:2961773505 mslabel:ARDAMS\r\na=ssrc:2961773505 label:ARDAMSv0\r\na=ssrc:3335171879 cname:oO76JWYDlPZLliIf\r\na=ssrc:3335171879 msid:ARDAMS ARDAMSv0\r\na=ssrc:3335171879 mslabel:ARDAMS\r\na=ssrc:3335171879 label:ARDAMSv0\r\n"}";

about ice connection failure

Hi, I am able to setup the server in a digital ocean droplet and i am able to make calls through android app using this "https://github.com/Piasy/AppRTC-Android" android code.

But if 2 android devices are connected to same wifi the call is getting established..
But when am under NAT (Mobile Network) , then am getting an error "ice connection failed" ..

I am aware that we have to install our own Turn server and configure it.
So i have installed Coturn in another digital ocean droplet with username and password.
And i have tested the coturn server too using this link "https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/".

But the problem is am not getting where to configure this particular turn server in the "ISBX/apprtc-node-server" code

Please help me where should i write my turn server username , url and password credentials in this repo.
Please let me know the file name in this repo , where i should configure.

Thanks in advance.

Cannot access through LAN IP.

Anything work fine when I'm running at address localhost:3000
But when I try to connect through LAN IP it not work
example IP: 172.16.126.237

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.