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

Player stuck at loading gif, Console message - Player playing.. #37

Open
akgaurav opened this issue Mar 17, 2021 · 4 comments
Open

Player stuck at loading gif, Console message - Player playing.. #37

akgaurav opened this issue Mar 17, 2021 · 4 comments

Comments

@akgaurav
Copy link

Browser not receiving the video stream and player remains stuck in loading gif state.

Tried to setup TURN server (Node-turn & coturn) and ice server as follows -

ws_uri: 'ws://' + '107.108.207.92' + ':8888/kurento',
ice_servers: '[{"urls": "turn:107.122.13.15:3478", "username": "optional-username", "credential": "auth-token"}]'

Master branch throws below exception with ice_server.
urentoUtils.WebRtcPeer.prototype.server.iceServers = JSON.parse(args.ice_servers);

"cannot find server of undefined"

Release 5.1 accepts TURN config but RTCPeerConnection doesn't return any object

this.pc = new RTCPeerConnection(server, options);

Console shows below message -

Created SDP offer
Local description set
ICE negotiation completed
SDP answer received, setting remote description
PlayerEndpoint-->WebRtcEndpoint connection established
Player playing ..

Kurento media server examples based on MAVEN and spring boot are working on my system but rtsp2webrtc fails.

Queries -

  1. Is TURN server needed ? Is TURN server supposed to be installed on the same system as KMS. (MY KMS is installed on remote)
  2. What will be ws-uri. Is it supposed to be same as KMS ? (ws://' + '107.108.207.92' + ':8888/kurento',)
  3. What all configuration needed for TURN (config coturn/node-turn, ICE server on client, KMS config file)

Please help to resolve the issue. Thanks

@sraza295
Copy link

sraza295 commented Aug 28, 2021

@akgaurav
Did you fix this issue?

@akgaurav
Copy link
Author

@sraza295 The root cause of the issue was quite different. I was using Http URL with IP address and browser was not allowing the camera and mic permission which is probably a prerequisite to stream and play. There are 2 options to avoid this issue -

  1. Use https url
  2. Use http only with localhost and set camera and mic permission to allowed in browser

WebRtc is not supported on all the browsers, works best with chrome.

@sraza295
Copy link

@akgaurav
thank you so much bro for the quick reply.
I will try your approach.

@sraza295
Copy link

@akgaurav
Is this your project running?
No error is coming still video is not playing.
Please can you help me?

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