Hi,I am trying to develope a video chat app using node js kurento and js as front end.How can I integrate STUN and TURN servers, specifically using the Coturn Docker image, into my Node.js Kurento.js video chat app? I have a remote machine accessible only through Putty, and I need guidance on configuring and testing the setup."i am new to this and confused how to proceed Thanks in advance!
Loading
Konga MounikaPosted May 19, 2023, 5:48 AM
. Here are the steps on how to integrate STUN and TURN servers, specifically using the Coturn Docker image, into your Node.js Kurento.js video chat app:
docker pull coturn/turnserver
3. Create a new Dockerfile on your remote machine. The Dockerfile should contain the following lines:
FROM coturn/turnserver
# Set the TURN server's public IP address
ENV TURN_SERVER_PUBLIC_IP=
# Set the TURN server's username and password
ENV TURN_SERVER_USERNAME=
ENV TURN_SERVER_PASSWORD=
# Start the TURN server -p -a
CMD turnserver -u
4. Build the Docker image. You can do this by running the following command:
docker build -t turnserver .
5. Run the Docker image. You can do this by running the following command:
docker run -d -p 3478:3478 turnserver
6. Configure your Node.js Kurento.js video chat app to use the TURN server. You can do this by adding the following lines to your app's configuration file:
"turnServers": [:3478",","
{
"url": "turn:
"username": "
"password": "
}
]
7. Test your app. You can test your app by running it and then trying to make a video call with another user. If everything is configured correctly, you should be able to see each other's video.
Here are some additional tips for configuring and testing your setup:
I hope this helps!