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:-)
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.
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.
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).
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With