Moroz_Grigory Moroz_Grigory - 28 days ago 27
Javascript Question

Connect to Kurento Room without stream

I'm trying to connect to Kurento Room without stream. I'm creating
localStream

with this hash of params:

var localStream = kurento.Stream(room, {
audio: false,
video: false,
data: false
});
...
...
localStream.init();


But anyway Kurento publishing my webcam to room, what am I doing wrong?

Answer

You need to edit KurentoRoom.js

In that file, look for function Stream(kurento, local, room, options) and inside there is an init function (this.init = function() {...}).

This is where you can modify the constraints for the getUserMedia call.