I want to build a phonegap
video chat for public use, but I didn’t find any solution for iOS.
I tried Phonertc
for example, which looks like the only plugin built for p2p
video, but it doesn’t work at all. It’s full of bugs and really not stable, what would you suggest now?
I thought about streaming in p2p
the camera video in background using the phonegap media plugin and some services like amazon servers for relaying, I would avoid using tools like tokbozx
and twillio
.
I really need to be able to manage the video stream so that I can apply filters and more from a canvas for example.
Please if you have some idea let me know, thanks!!
So what do you think the steup and logic should be behind building a cordova
video and audio p2p
chat?
thsanks
2
Answers
Not sure if it’s the model you’re going for, but you could try p2p:
http://www.webrtc.org/architecture
Can HTML5 Websockets connect 2 clients (browsers) directly without using a server? (P2P)
I haven’t played with server-side much, but here’s a tutorial:
http://codesamplez.com/programming/php-html5-video-streaming-tutorial
Client Side Only (expand from here, could add canvas):
There is ConnectyCube platform which provides Cordova chat & video chat SDKs and code samples
Here is a Video Chat how to guide: https://developers.connectycube.com/js/code-samples-videochat-cordova
It describes how to run their Video Chat web code sample under Cordova/PhoneGap. Looks pretty simple. It’s based on top of WebRTC API, it’s a P2P video chat. They use cordova-plugin-iosrtc plugin for iOS to work