When running the kurento_hello_world Nodejs tutorial the Kurento Client fails to connect with my Kurento Media Server running on AWS. However, the corresponding Browser Javascript tutorial works fine with the exact same setup.
My setup includes a Kurento Media Server running on an EC2 instance. This was installed using the publicly available CloudFormation config for the server. I have configured the certificates correctly and ensured my browsers trust them.
I have the tutorials installed and running from a separate EC2 instance. I am using version 6.10.0 of the tutorials (however, I experience the same with 6.9.0).
I am testing this using Chrome.
For the Browser JavaScript Hello World tutorial I updated the js/index.js file to include:
var args = getopts(location.search,
{
default:
{
// ws_uri: 'wss://' + location.hostname + ':8433/kurento',
ws_uri: 'wss://<IP_Of_KMS_On_AWS>:8433/kurento', // Kurento server on AWS
ice_servers: undefined
}
});
This results in the tutorial working fine. I see both video stream in the browser and logs in the KMS log file.
For the Node Hello World tutorial I updated the server.js file to include:
var argv = minimist(process.argv.slice(2), {
default: {
// as_uri: 'https://localhost:8443/',
as_uri: 'https://<IP_Of_Application_Server>:8443/', // Application server on EC2
// ws_uri: 'ws://localhost:8888/kurento'
ws_uri: 'wss://<IP_Of_KMS_On_AWS>:8433/kurento', // Kurento server on AWS
}
});
In the Node tutorial, the basic browser elements work fine, however the application fails to make successful connections to the KMS. I don't see anything in the KMS logs. I see the local video displayed in the browser, with a spinner in the remote video element. This is a similar experience I've had with other Node Kurento tutorials, i.e. no calls being made to the KMS instance on AWS.
I am expecting that based on my configuration the Hello World Node tutorial should work the same as the Browser Javascript tutorial and I should see both video streams in the browser and logs being generated on the Kurento server.
Open questions: 1) Does my configuration look correct? 2) Am I missing something in my setup?