I have done the code changes by referring "kurento-one2many-call" node sample for webRTC video streaming using RTSP steam as source. Code is available on GitHub Repository. Presenter/source(PlayerEndpoint) is loaded on start of node application, and viewer will stream video stream by clicking on viewer button. No need to add presenter or click on presenter button.
But I am facing problem with this code, When I will click on viewer button, no any error on Chrome console log and on Firefox it shows "ICE failed, see about:webrtc for more details" error on console log. It just showing spinner and video did not get displayed.
If we monitor Node log, then everything is fine with it, PlayerEndpoint is created successfully and responding to ICE messages. Last line of log is printed as "Sending viewer candidate." after that it will stuck, nothing will be printed later. Same will happen for new viewer request.
Please help me to get out of this issue, or suggest me any code changes.
The STUN server you have configured in your WebRtcEndpoint.ini (173.194.66.127) is not generating any candidates. It's very likely that the server is down. Please use any other publicly available STUN server from this list. Also, don't forget to check that the server is indeed working by any of the following methods
stun
command. You might need to install the package via sudo apt-get install stun