Re: [discuss-webrtc] WebRTC for Client-to-Server communication

282 views
Skip to first unread message

PhistucK

unread,
Nov 13, 2012, 12:13:26 AM11/13/12
to discuss...@googlegroups.com
Probably.

PhistucK



On Mon, Nov 12, 2012 at 11:19 AM, Vadim Marchenko <vadim.v....@gmail.com> wrote:
Is it easier and more efficient to use WebRTC instead of websockets to have client-to-server kind of communication if I only need to send live media stream to server for further broadcasting purposes? 

--
 
 
 

T Man

unread,
Nov 13, 2012, 5:28:49 AM11/13/12
to discuss...@googlegroups.com
How would you do it without WebRTC?? beats me? oO

Ivan Vučica

unread,
Nov 13, 2012, 8:37:27 AM11/13/12
to discuss...@googlegroups.com
I presume Vadim refers to the peer-to-peer component of WebRTC, not the camera access component. 

To answer Vadim, it's probably possible to read the image data (since I saw demos where the image can be painted into a canvas), but it would almost certainly not be as efficient. For one, you'd at the very least have to implement a codec in Javascript to avoid uploading uncompressed image data, since you can't get just the compressed stream for further transmission via your own channels.

In short, you'd be better off using WebRTC on the client side, and figure out the best way to write a server side component. One way is using Chrome's open source WebRTC libraries, but you could also just implement ICE and RTP differently, and parse SDP on your own.

--
 
 
 


Ralph Giles

unread,
Nov 13, 2012, 2:59:06 PM11/13/12
to discuss...@googlegroups.com
On 12-11-12 1:19 AM, Vadim Marchenko wrote:
> Is it easier and more efficient to use WebRTC instead of websockets to
> have client-to-server kind of communication if I only need to send live
> media stream to server for further broadcasting purposes?

Probably not.

The main reason to use webrtc is when you want to minimize the
transmission delay. Uploading over websockets will give you more
reliable transmission, which is usually what you want if you're not
broadcasting live.

-r
Reply all
Reply to author
Forward
0 new messages