I'm trying to record video using the Kurento Media Server with nodejs. I've been running hello-world example here. I connected a recorderEndpoint to the webrtcEndpoint and was able to get the whole thing running but I receive this error message on the server:
0:37:59.122469563 7003 0xaf5500 ERROR KurentoMediaPipelineImpl /build/buildd/kms-core-5.0.3/src/server/implementation/objects/MediaPipelineImpl.cpp:32:busMessage: Error on bus: error message: 0x7f11c0330ea0, time 99:99:99.999999999, seq-num 514729, element 'kmsrecorderendpoint10', GstMessageError, gerror=(GError)NULL, debug=(string)"/build/buildd/kms-elements-5.0.3/src/gst-plugins/kmsrecorderendpoint.c(876):\ sink_required_cb\ ():\ /GstPipeline:pipeline8/KmsRecorderEndpoint:kmsrecorderendpoint10";
I don't think its recording properly, but I'm not sure what's wrong. I was able to run the original example so the server is fine.
Code here:
https://gist.github.com/poliu2s/2cd3fc2a5dc929062481
You need to fix several issues before having your code running properly. I've created a fork of your code and I've added some modifications that you'd need to include for being able to record the WebRTC stream. The fork is here. In addition, let me provide you a few comments:
Edit: The example indeed has a stop button that, when pressed, releases the pipeline and, with that, stops the recording. Hence, comment 1 is nor really applicable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With