lulop-k / kurento-rtsp2webrtc

This example shows how to transform a RTSP feed or an HTTP feed into a low latency WebRTC stream in a simple and seamless manner.
565 stars 155 forks source link

Complex question #19

Open emilianoarmango opened 5 years ago

emilianoarmango commented 5 years ago

Hi, I am new in this world and I need help to start this demo.

Running in Ubuntu 16.04 I has KMS running (checked with ps and netstat, it is ok) and I has the http-server running from the kurento-rtsp2webrtc folder. The web app is running fine, using this url

http://localhost:8080/index.html?ws_uri=ws://192.168.19.173:8888/kurento

But when I click START I get the follow console result

`Local icecandidate {"candidate":"candidate:0 1 UDP 2122252543 192.168.19.173 55667 typ host","sdpMid":"sdparta_0","sdpMLineIndex":0} Local icecandidate {"candidate":"candidate:3 1 TCP 2105524479 192.168.19.173 9 typ host tcptype active","sdpMid":"sdparta_0","sdpMLineIndex":0} Local icecandidate {"candidate":"candidate:0 2 UDP 2122252542 192.168.19.173 43966 typ host","sdpMid":"sdparta_0","sdpMLineIndex":0} Local icecandidate {"candidate":"candidate:3 2 TCP 2105524478 192.168.19.173 9 typ host tcptype active","sdpMid":"sdparta_0","sdpMLineIndex":0} Local icecandidate {"candidate":"candidate:0 1 UDP 2122252543 192.168.19.173 45953 typ host","sdpMid":"sdparta_1","sdpMLineIndex":1} Local icecandidate {"candidate":"candidate:3 1 TCP 2105524479 192.168.19.173 9 typ host tcptype active","sdpMid":"sdparta_1","sdpMLineIndex":1} Local icecandidate {"candidate":"candidate:0 2 UDP 2122252542 192.168.19.173 50243 typ host","sdpMid":"sdparta_1","sdpMLineIndex":1} Local icecandidate {"candidate":"candidate:3 2 TCP 2105524478 192.168.19.173 9 typ host tcptype active","sdpMid":"sdparta_1","sdpMLineIndex":1} Local icecandidate {"candidate":"candidate:1 1 UDP 1686052863 200.69.204.19 55667 typ srflx raddr 192.168.19.173 rport 55667","sdpMid":"sdparta_0","sdpMLineIndex":0} Local icecandidate {"candidate":"candidate:1 2 UDP 1686052862 200.69.204.19 43966 typ srflx raddr 192.168.19.173 rport 43966","sdpMid":"sdparta_0","sdpMLineIndex":0} Local icecandidate {"candidate":"candidate:1 1 UDP 1686052863 200.69.204.19 45953 typ srflx raddr 192.168.19.173 rport 45953","sdpMid":"sdparta_1","sdpMLineIndex":1} Local icecandidate {"candidate":"candidate:1 2 UDP 1686052862 200.69.204.19 50243 typ srflx raddr 192.168.19.173 rport 50243","sdpMid":"sdparta_1","sdpMLineIndex":1} PlayerEndpoint-->WebRtcEndpoint connection established Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:1 1 UDP 2013266431 fe80::e57b:7942:183d:3acb 24430 typ host","sdpMLineIndex":0,"sdpMid":"sdparta_0"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:1 1 UDP 2013266431 fe80::e57b:7942:183d:3acb 24430 typ host","sdpMLineIndex":1,"sdpMid":"sdparta_1"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:2 1 TCP 1015022847 fe80::e57b:7942:183d:3acb 9 typ host tcptype active","sdpMLineIndex":0,"sdpMid":"sdparta_0"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:2 1 TCP 1015022847 fe80::e57b:7942:183d:3acb 9 typ host tcptype active","sdpMLineIndex":1,"sdpMid":"sdparta_1"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:3 1 TCP 1010828543 fe80::e57b:7942:183d:3acb 50052 typ host tcptype passive","sdpMLineIndex":0,"sdpMid":"sdparta_0"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:3 1 TCP 1010828543 fe80::e57b:7942:183d:3acb 50052 typ host tcptype passive","sdpMLineIndex":1,"sdpMid":"sdparta_1"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:4 1 UDP 2013266430 192.168.19.173 52267 typ host","sdpMLineIndex":0,"sdpMid":"sdparta_0"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:4 1 UDP 2013266430 192.168.19.173 52267 typ host","sdpMLineIndex":1,"sdpMid":"sdparta_1"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:5 1 TCP 1015022079 192.168.19.173 9 typ host tcptype active","sdpMLineIndex":0,"sdpMid":"sdparta_0"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:5 1 TCP 1015022079 192.168.19.173 9 typ host tcptype active","sdpMLineIndex":1,"sdpMid":"sdparta_1"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:6 1 TCP 1010827775 192.168.19.173 13760 typ host tcptype passive","sdpMLineIndex":0,"sdpMid":"sdparta_0"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:6 1 TCP 1010827775 192.168.19.173 13760 typ host tcptype passive","sdpMLineIndex":1,"sdpMid":"sdparta_1"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:1 2 UDP 2013266430 fe80::e57b:7942:183d:3acb 65154 typ host","sdpMLineIndex":0,"sdpMid":"sdparta_0"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:1 2 UDP 2013266430 fe80::e57b:7942:183d:3acb 65154 typ host","sdpMLineIndex":1,"sdpMid":"sdparta_1"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:2 2 TCP 1015022846 fe80::e57b:7942:183d:3acb 9 typ host tcptype active","sdpMLineIndex":0,"sdpMid":"sdparta_0"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:2 2 TCP 1015022846 fe80::e57b:7942:183d:3acb 9 typ host tcptype active","sdpMLineIndex":1,"sdpMid":"sdparta_1"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:3 2 TCP 1010828542 fe80::e57b:7942:183d:3acb 20350 typ host tcptype passive","sdpMLineIndex":0,"sdpMid":"sdparta_0"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:3 2 TCP 1010828542 fe80::e57b:7942:183d:3acb 20350 typ host tcptype passive","sdpMLineIndex":1,"sdpMid":"sdparta_1"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:4 2 UDP 2013266429 192.168.19.173 4450 typ host","sdpMLineIndex":0,"sdpMid":"sdparta_0"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:4 2 UDP 2013266429 192.168.19.173 4450 typ host","sdpMLineIndex":1,"sdpMid":"sdparta_1"} oniceconnectionstatechange -> checking icegatheringstate -> complete Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:5 2 TCP 1015022078 192.168.19.173 9 typ host tcptype active","sdpMLineIndex":0,"sdpMid":"sdparta_0"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:5 2 TCP 1015022078 192.168.19.173 9 typ host tcptype active","sdpMLineIndex":1,"sdpMid":"sdparta_1"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:6 2 TCP 1010827774 192.168.19.173 62129 typ host tcptype passive","sdpMLineIndex":0,"sdpMid":"sdparta_0"} Remote icecandidate {"module":"kurento","type":"IceCandidate","candidate":"candidate:6 2 TCP 1010827774 192.168.19.173 62129 typ host tcptype passive","sdpMLineIndex":1,"sdpMid":"sdparta_1"}

reconnect to server reconnect to server . . . reconnect to server

oniceconnectionstatechange -> failed icegatheringstate -> complete

reconnect to server Error: Request has timed out

reconnect to server reconnect to server . . . reconnect to server`

I will be working on that, but I wonder if any can help me :)

emilianoarmango commented 5 years ago

Then, if I stop and re start KMS, the message "Invalid session" appears in the console

daiseita commented 5 years ago

Did you fix this problem?
I got totally same trouble , I had change 2,3 differnt brand IP camera but it not work . Then I try to play a MJPEG stream , MJPEG stream can work on this demo
Did anyone successfully run rtsp stream on this demo ?