After following the instructions of the kurento-rtsp2webrtc tutorial to stream RTSP on a website, I was able to successfully run the demo in a local network environment.
However, when attempting to run it on AWS EC2 with VPN, everything worked fine. Unfortunately, without VPN, the browser console log returned "oniceconnectionstatechange -> failed."
The browser console log showed:
This seems to be Chrome
Using freeice
Local icecandidate {"candidate":"candidate:1270274445 1 udp
2113937151 192.168.1.11 48697 typ host generation 0 ufrag KK6A
network-cost 50","sdpMid":"video","sdpMLineIndex":0}
// more log details here...
Player playing ...
oniceconnectionstatechange -> failed
icegatheringstate -> complete
I even configured a stun server information (serverip:8000) in WebRtcEndPoint.conf.ini, but the issue persisted.