kurentoClient(ws_uri, function(error, kurentoClient) { if(error) return onError(error); kurentoClient.create("MediaPipeline", function(error, pipeline) { if(error) return onError(error); pipeline.create('RecorderEndpoint', {uri : file_uri}, function(error, recorder) { if (error) return onError(error); pipeline.create("WebRtcEndpoint", function(error, webRtc){ if(error) return onError(error); webRtc.processOffer(sdpOffer, function(error, sdpAnswer){ if(error) return onError(error); webRtcPeer.processSdpAnswer(sdpAnswer); }); webRtc.connect(recorder, function(error) { if (error) return onError(error); console.log("Connected"); recorder.record(function(error) { if (error) return onError(error); console.log("record"); });
--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Keep in mind that the KMS runs with user nobody, so you have to use a path with the right permissions. Could you check that?
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "kurento" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kurento/MBis0tZPowo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kurento+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
As Luis said, this is working for most people, and in our environments. I was just hoping that it was an issue with permissions. Could you please send us the entire log file attached?
On Mon Nov 24 2014 at 6:10:08 PM Alexander Morokhovets <alexander....@gmail.com> wrote:
Yes, I've checked. It's /tmp with rwxrwxrwt (1777) set on it. Should be fine.I've also tried nobody:nogroup rwxr-xr-x /tmp/kurento. Still no luck.Are there any logs except /var/log/kurento-media-server/media-server.log ?Relevant media-server.log entries:[2014-11-24 20:56:27.316044] [0x158be700] [debug] KurentoWebSocketTransport WebSocketTransport.cpp:437 processMessage() Message: >{"id":3,"jsonrpc":"2.0","method":"create","params":{"constructorParams":{"mediaPipeline":"a9579d5f-ff5b-4285-b7ad-b53238f4478e","uri":"file:///tmp/kurento/1416848188547.webm"},"sessionId":"c75c9db3-5a0a-4b28-8710-dbd136ca67ff","type":"RecorderEndpoint"}}<[2014-11-24 20:56:27.317505] [0x158be700] [info] KurentoRecorderEndpointImpl RecorderEndpointImpl.cpp:39 RecorderEndpointImpl() Set WEBM profile[2014-11-24 20:56:27.524392] [0x150bd700] [debug] KurentoWebSocketTransport WebSocketTransport.cpp:437 processMessage() Message: >{"id":5,"jsonrpc":"2.0","method":"invoke","params":{"object":"a9579d5f-ff5b-4285-b7ad-b53238f4478e/ffa227fc-910d-4f22-89b4-c91d841c39a3","operation":"record","sessionId":"c75c9db3-5a0a-4b28-8710-dbd136ca67ff"}}Any help?ThanksMon Nov 24 2014 at 8:30:49 PM, Ivan Gracia <izan...@gmail.com>:
Keep in mind that the KMS runs with user nobody, so you have to use a path with the right permissions. Could you check that?
To unsubscribe from this group and all its topics, send an email to kurento+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
Room.prototype.connectViewer = function(id, webRtcEndpoint, cb) {
var self = this;
var recordParams = {
uri: "file:///tmp/kurento/" + Date.now() + ".webm"
};
self.pipeline.create('RecorderEndpoint', recordParams, function(err, recorder) {
if (err) return cb(err);
self.viewers[id].recorder = recorder;
webRtcEndpoint.connect(recorder, function(err) {
if (err) return cb(err);
recorder.record(function(err) {
if (err) return cb(err);
async.each(_.keys(self.viewers), function(viewerId, cb) {
if (viewerId == id) {
cb();
} else {
self.viewers[viewerId].webRtcEndpoint.connect(webRtcEndpoint, function(err) {
if (err) return cb(err);
webRtcEndpoint.connect(self.viewers[viewerId].webRtcEndpoint, function(err) {
if (err) return cb(err);
cb();
});
});
}
});
});
});
}, function(err) {
cb(err);
});
}