Hi
I am using Nodejs 16 and below libraries for kurento-rtmp
/root/kurento-rtmp
├── bower@1.8.14
├── cookie-parser@1.4.6
├── express-session@1.10.4
├── express@4.12.4
├── kurento-client@5.1.0
├── minimist@1.2.8
├── node-media-server@1.5.1
└── ws@8.16.0
When i start server.js it through below errors
Trace: SyntaxError: WebRtcEndpoint doesn't accept events of type 'OnIceCandidate'
at WebRtcEndpoint. (/root/kurento-rtmp/node_modules/kurento-client-core/lib/abstracts/MediaObject.js:184:13)
at WebRtcEndpoint.emit (node:events:513:28)
at WebRtcEndpoint.emit (node:domain:489:12)
at _addListener (node:events:556:14)
at WebRtcEndpoint.addListener (node:events:605:10)
at /root/kurento-rtmp/server.js:224:36
at WebRtcEndpoint. (/root/kurento-rtmp/server.js:335:16)
at callback2 (/root/kurento-rtmp/node_modules/promisecallback/index.js:27:25)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at callback2 (/root/kurento-rtmp/node_modules/promisecallback/index.js:32:17)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
This code creating issue:-
webRtcEndpoint.on('OnIceCandidate', function (event) {
var candidate = kurento.getComplexType('IceCandidate')(event.candidate);
ws.send(JSON.stringify({
id: 'iceCandidate',
candidate: candidate
}));
});
Please help to resolve this issue.
Hi
I am using Nodejs 16 and below libraries for kurento-rtmp
/root/kurento-rtmp
├── bower@1.8.14
├── cookie-parser@1.4.6
├── express-session@1.10.4
├── express@4.12.4
├── kurento-client@5.1.0
├── minimist@1.2.8
├── node-media-server@1.5.1
└── ws@8.16.0
When i start server.js it through below errors
Trace: SyntaxError: WebRtcEndpoint doesn't accept events of type 'OnIceCandidate'
at WebRtcEndpoint. (/root/kurento-rtmp/node_modules/kurento-client-core/lib/abstracts/MediaObject.js:184:13)
at WebRtcEndpoint.emit (node:events:513:28)
at WebRtcEndpoint.emit (node:domain:489:12)
at _addListener (node:events:556:14)
at WebRtcEndpoint.addListener (node:events:605:10)
at /root/kurento-rtmp/server.js:224:36
at WebRtcEndpoint. (/root/kurento-rtmp/server.js:335:16)
at callback2 (/root/kurento-rtmp/node_modules/promisecallback/index.js:27:25)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at callback2 (/root/kurento-rtmp/node_modules/promisecallback/index.js:32:17)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
This code creating issue:-
webRtcEndpoint.on('OnIceCandidate', function (event) {
var candidate = kurento.getComplexType('IceCandidate')(event.candidate);
ws.send(JSON.stringify({
id: 'iceCandidate',
candidate: candidate
}));
});
Please help to resolve this issue.