Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebRTC using PeerJS - Will it work on Android & IOS apps

We have been doing a WebRTC app using PeerJS for web.

Server side : NodeJS

Client side : HTML5/CSS/Javascript/Angularjs

We are 90% there and it is working fine in chrome firefox but not working in safari.I know that safari does not support WebRTC.

Is there any workaround to make it work in safari like any plugin?

My second question is if i copy my web code and put it in phonegap or ionic will it work in Android and IOS . I mean for now we have done a chat using peerJS which is purely a javascript code will the chat work in phonegap or ionic apps in Android and IOS platform

Please share your ideas, which is greatly Appreciated.Thanks:-)

like image 215
sdg Avatar asked Sep 03 '15 07:09

sdg


People also ask

Is PeerJS part of WebRTC?

But there is some good news; PeerJS is a WebRTC framework that abstracts away all of the ice and signalling logic so that you can focus on the functionality of your application. There are two parts to PeerJS, the client-side framework and the server.

What is PeerJS used for?

PeerJS simplifies WebRTC peer-to-peer data, video, and audio calls. PeerJS wraps the browser's WebRTC implementation to provide a complete, configurable, and easy-to-use peer-to-peer connection API. Equipped with nothing but an ID, a peer can create a P2P data or media stream connection to a remote peer.

Is PeerJS open source?

PeerJS provides an open source implementation of this connection broker server PeerJS Server (written in Node. js), in case you do not want to use their cloud-hosted version (which is free right now, and comes with some limitations).


1 Answers

For first question: There is a plugin to make WebRTC work on Safari (and IE). You can check here to see the progress of PeerJS and the plugin

For second question: You can do that with Android (for sure there is must be some modifications) but I do not think it work. But you can check Crosswalk-project and PeerJS WebRTC library

Hope this help!

like image 122
luongnv89 Avatar answered Oct 04 '22 18:10

luongnv89