Hey Guys,
1. I'm creating a RecorderEndpoint on the server.
2. I'm passing in this tab capture MediaStream object to kurentoUtils.WebRtcPeer.WebRtcPeerSendrecv.
Here's an example of me passing in the tabCapture stream:
chrome.tabCapture.capture({
video: true,
audio: false,
videoConstraints: {
minFrameRate: 30,
maxFrameRate: 64
}
}, function (mediaStream) {
var options = {
localVideo: videoInput,
remoteVideo: videoOutput,
onicecandidate: onIceCandidate,
videoStream: mediaStream
};
webRtcPeer = kurentoUtils.WebRtcPeer.WebRtcPeerSendrecv(options, function(error) {
// generate offer and process
});
});
When I get rid of passing this in as videoStream, the normal example works as expected and gets recorded properly. When I pass in the videoStream like this, I can actually see the local and remote video tags showing the tab capture properly, but the front-facing camera actually gets recorded. Maybe this is an issue with adapter.js not being able to figure out that the video stream passed in is valid?
My eventual goal is to create a WebRtcPeerSendonly connection where I'm only sending and recording the tab video capture (recording what's going on on the current website), but I figured I would keep everything as close to the hello-world example as possible to reduce the amount of variation that might cause any issues.