Echo Video Stream

133 views
Skip to first unread message

T Man

unread,
Nov 12, 2012, 8:08:13 AM11/12/12
to discuss...@googlegroups.com
Hi,

I am trying to Echo back a stream using the latest JSEP webrtc API webkitRTCPeerConnection()

So what I'm trying is that one browser sends its camera video stream to another browser, and the other browser instead of returning a new stream( from its webcam), just returns  the received stream. 

Which means that the browser that is supposed to echo the stream would have some code like this
      pc.onaddstream = function(event) {
        console.log("Remote stream added.");
        pc.addStream(event.stream);
...........................
}

But when I tried the add this stream with the addStream method, I get a syntax error, 
  1. Uncaught Error: SYNTAX_ERR: DOM Exception 12 callee.js:53
    1. pc.onaddstream


      Could someone enlighten me about if my experiment is possible?

PhistucK

unread,
Nov 12, 2012, 9:02:39 AM11/12/12
to discuss...@googlegroups.com
I am not sure about the error, but I believe the implementation currently does not support your goal.

PhistucK



--
 
 
 

Justin Uberti

unread,
Nov 29, 2012, 7:20:51 PM11/29/12
to discuss-webrtc
This is not currently supported, but should be possible in future versions of Chrome.


--
 
 
 

Reply all
Reply to author
Forward
0 new messages