Details
-
Type:
extRequest
-
Status: Closed
-
Priority:
Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
Sender Email:
-
HD-Chapter:Data
-
HD-Enabler:Kurento
Description
Dear FIWARE coach,
we forward you a support request received from a CreatiFI applicant we are
not able to solve.
Please let us know if you need direct contact with the submitter.
Thanks.
******************************
Hello,
We are trying to record a screencast.
The screencast is sent to Kurento that is able to send it back to the
client.
But the stream is not recorded, the file is created but stays at zero bytes.
Actually, we have been recording files on v5.1.0 without any problems.
Now we moved to v6.4.0 we changed the code accordingly but now the
screencast stream is not recorded any more.
Project is blocked because of this, we need help urgently!
This is the code we use to stream and record:
var screencastConstraints = {
audio: false,
video: {
mandatory:
}
};
this.startScreencast = function () {
var screencastInput = document.getElementById('screencastInput')
var options = {
localVideo: null,
remoteVideo: screencastInput,
mediaConstraints: screencastConstraints,
configuration : { iceServers : [
] }
};
var pipeline = self.pipeline;
if (pipeline != null) {
// self.webRtcPeerScreencast =
kurentoUtils.WebRtcPeer.startSendOnly(null, onOffer, onError,
screencastConstraints);
self.webRtcPeerScreencast =
kurentoUtils.WebRtcPeer.WebRtcPeerSendrecv(options, function(error)
);
} else
{ $log.debug('Pipeline == null'); }function onError(error)
{ $log.log(error); } function onOffer(error, offer) {
$log.log("Offer...");
var elements =
[
{type: 'RecorderEndpoint', params: {uri :
file_uri_path + file_uri_screencast + sessionID + file_uri_format}},
{type: 'WebRtcEndpoint', params: {}}
];
kurentoClient(ws_uri, function (error, client) {
if (error) return onError(error);
client.create('MediaPipeline', function (error,
mypipeline) {
if (error) return onError(error);
$log.log("Got MediaPipeline");
mypipeline.create(elements, function(error, elements){
if (error) return onError(error);
var recorder = elements[0];
var webRtc = elements[1];
setIceCandidateCallbacks(self.webRtcPeerScreencast, webRtc, onError);
webRtc.processOffer(offer, function(error, answer)
{ if (error) return onError(error); console.log("offer"); webRtc.gatherCandidates(onError); self.webRtcPeerScreencast.processAnswer(answer); });
client.connect(webRtc, webRtc, recorder,
function(error) {
if (error) return onError(error);
self.screencastRecorder = recorder;
console.log("Connected");
recorder.record(function(error)
{ if (error) return onError(error); console.log("record"); });
});
});
});
});
}
};
******************************
Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
Please, send your messages using the new domain (Fiware-creatifi-coaching@lists.fiware.org) instead of the old one.
_______________________________________________
Fiware-creatifi-coaching mailing list
Fiware-creatifi-coaching@lists.fiware.org
https://lists.fiware.org/listinfo/fiware-creatifi-coaching
[Created via e-mail received from: Andrea Maestrini <amaestrini@create-net.org>]
Issue Links
- relates to
-
HELC-1298 FIWARE.Request.Coach.CreatiFI.Screencast stream not being recorded in Kurento GE
-
- Closed
-
Dear,
I suggest you to forward the issue to the FIWARE Kurento GE: Luis Lopez
BR