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

Object detection not working #7

Open
dimitri320 opened this issue Jan 2, 2020 · 2 comments
Open

Object detection not working #7

dimitri320 opened this issue Jan 2, 2020 · 2 comments

Comments

@dimitri320
Copy link

I've managed to setup everything right, and the website with a video steam work just fine. But I'm not detecting any object in the video stream (I'm in the camera view, so a person should have been detected).

Here is what I get on the server side in my GCP SSH Terminal:

INFO:ice:Connection(0) ICE failed
DEBUG:ice:controlled - checking -> failed
DEBUG:dtls:client - State.NEW -> State.CONNECTING
DEBUG:dtls:client x DTLS handshake failed (connection error)
DEBUG:dtls:client - State.CONNECTING -> State.FAILED
ICE connection state is failed
DEBUG:ice:controlled - failed -> closed
ICE connection state is closed

@knowercoder
Copy link

@dimitri320 did you resolved the issue. I am too getting the same issue

@knowercoder
Copy link

knowercoder commented Jul 12, 2020

I solved my issue by adding a STUN server link.
I added the configuration of RTC Peerconnection as follow:

var config = {
sdpSemantics: 'unified-plan'
};

config.iceServers = [{urls: ['stun:stun.l.google.com:19302']}];

pc = new RTCPeerConnection(config);

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

2 participants