Coder Social home page Coder Social logo

react-native-webrtc-server's People

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  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  avatar

react-native-webrtc-server's Issues

SFU implementation

Dear, does this server act as an SFU? if no is there a way to implement is as such? My goal is to relay a stream to multiple viewers, but not cause multiple connections to the streamer's client but rather to a server which relays the stream to the viewers and handle the lot of connection.

Thanks in advance,
Best regards,
Yours,
Bertrand

Deploy with https

I am trying to deploy this react-native-webrtc-server on my VPS with SSL ( https )
I am following the steps below :

  1. installed node and running server on http://127.0.0.1:8080
  2. using niginx as reverse proxy and in the niginx server block adding it like this
    location / {
    proxy_pass http://127.0.0.1:8080;
    .
    .
  3. accessing website like this https://mywebsite.com

now when I access https://mywebsite.com it is not connected to node server but when i access it like this http://mywebsite.com:8080 it works but without ssl

How are you able to make it work with SSL (https)
Do i need to use https on both reverse proxy( niginx) as well as on node server ( i.e. https://127.0.0.1:8080)?
At present I am using https on niginx reverse proxy but not on node server.

Please give some directions as I can see you have successfully deployed it on your heroku server with https (SSL)

Video is not shown

I reference your code to create webrtc web app
Earlier It was working fine. But today When I run the app its not showing video.

I got a warning in console
URL.createObjectURL(stream) has been deprecated. use srcObject instead.

So I looks for its fix and got a solution suggested by many people.
// Don't do this
video.src = URL.createObjectURL(stream);
// Do this
video.srcObject = stream;

After using it warning goes away, but still i am not able to see the local as well as remote video.

Please help me.
Thanks in advance

react native webrtc app can't join this sample server

Hello good day Oney-sama, I would like to ask help because your react native webrtc app was successfully connectd to the test server heroku, but when I'm using this sample server I can run it and access/connect thru chrome to chrome but I cannot connect from your android webrtc to sample server... Hope you can give time for my problem. thanks and your android app is very helpful for a newbie like me... Any help also guys?

chat is not wroking

function textRoomPress() {
var text = document.getElementById('textRoomInput').value;
if (text == "") {
alert('Enter something');
} else {
document.getElementById('textRoomInput').value = '';
var content = document.getElementById('textRoomContent');
content.innerHTML = content.innerHTML + '

' + 'Me' + ': ' + text + '

';
for (var key in pcPeers) {
var pc = pcPeers[key];
pc.textDataChannel.send(text);
}
}
}

it is not activating this function:

dataChannel.onmessage = function (event) {
  console.log("dataChannel.onmessage:", event.data);
  var content = document.getElementById('textRoomContent');
  content.innerHTML = content.innerHTML + '<p>' + socketId + ': ' + event.data + '</p>';
};

nothing happens

Compare and contrast this with janus?

This is not an issue but I needed a way to ask so I posted here.

I am curious to hear how this compact solution contrasts with the more heavyweight Janus and why someone would use Janus over this when Janus is much more complicated? A few use cases or examples to aid explanation would be great.

Running in IE with webrtc-everywhere

I have downloaded https://github.com/oney/react-native-webrtc-server example. And run the server in node and checked the video calling between 2 machines it was working fine, but only in chrome and firefox.
I wanted to work it in IE and safari also. Hence i used https://github.com/DoubangoTelecom/webrtc-everywhere.

I have Download and install the plugin for Windows and Included adapter.js script in my code.
And replaced document.getElementById("eltId").src = mediaStream; to attachMediaStream(document.getElementById("eltId"), mediaStream);
But still it is not working in IE.
What am i missing?
Am i doing it correctly?

While debugging i can see, in Chrome, it is passing RTCSessionDescription in createOffer method and it has been passed to other machine and displaying the video.
[ In Console it prints RTCSessionDescription {type:offer sdp:<some_value>}
But it IE it is passing ISessionDescription and the object value is empty in console. (Strangely i can see the object value while debug the code in IE)
[In console it prints [object] { } ]

I am very much confused. I am relatively new to scripting hence i might have done very naive mistake too. Please correct me and help me.
I you want i can provide the code samples as well

Regards,
Alex.

how to set up the server

my dear friend,i'm new to this field,and i don't know how to start from the server side.can u give some helps ,some documents or video .i'm sincerely appreciate for your help.

Getting Error .emit is undefined

I cloned the server code and hosted in node.js server when i try to join room getting error .emit is undefined in server side code

var to = io.sockets.connected[data.to];
to.emit('exchange', data);

deploy to different platform

hello, did you deploy this server to windows server with iisnode?
should this open the websocket protocol?
and i want to ask could this server run without the index.html?
thanks in advance.

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.