webRTC and PHP

1,366 views
Skip to first unread message

pt11...@apiit.edu.in

unread,
Mar 5, 2015, 6:07:05 PM3/5/15
to discuss...@googlegroups.com
I am working on a college project that would help corporate people for in house communication of all types and I am bound to use PHP. I have to implement following modules: -

audio communication
video communication
audio + video communication
screen sharing or recording
text based chat

P.S - one to one, many to one, many to many - all three has to be implemented

I have not founds many help regarding webRTC and PHP. I don't know how to make it work from XAMPP or something. Please guide me - is it even possible to use PHP for this purpose. I know I have two alternatives - silver light and flash but then webRTC seems the best as I will have many demos at my disposal.

Please give links of demos and sample that has been implemented using PHP and how to use the sample available on github via easyRTC and web-RTC experiments - as in how to make it run via uploading it on real hosting or XAMPP.

Nazmus Shakeeb

unread,
Mar 5, 2015, 11:13:35 PM3/5/15
to discuss...@googlegroups.com

To establish a audio/video call WeRTC need to send some information ( SDP and candidate ) from one client to other client 

this is done by signalling. Browser can not send this formation directly to the other Browser.

Browser need to communicate with a server application to do this signalling. This can be done by Websocket or normal html ( like BOSH )

For signalling you need to use standalone application ( not CGI) in the server side.

This can be developed using C/C++ , Java script using node.js or PHP.

and for client side you can use only JavaScript in the browser.


For signalling you need to understand how server can communicate with the browser. 

Normally server can not send anything until browser makes a request 

This can be overcome by using Websocket or http polling ( like BOSH ) 

Most of the WebRTC example use node.js server and JavaScript but it can be developed using PHP.

You need to implement Webscoket server or BOSH server using PHP to send and receive from client.

Then modify the messages according to your requirements.

I think there is no example available on github. Maybe PHP is not very popular for standalone application.  
Reply all
Reply to author
Forward
0 new messages