Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: WebRtcEndpoint doesn't accept events of type 'OnIceCandidate' #33

Open
Jodhrajmuvi opened this issue Mar 26, 2024 · 0 comments

Comments

@Jodhrajmuvi
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant