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,
- Uncaught Error: SYNTAX_ERR: DOM Exception 12 callee.js:53
pc.onaddstream
Could someone enlighten me about if my experiment is possible?