Search code examples
kurento

kurento-tutorial-node - Error message from server: Could not find media server at addressws://localhost:8888/kurento


I have just installed Kurento Media Server and I'm reviewing its Node tutorials. Some of them work flawlessly. However I have identical issue to the another ones e.g. kurento-platedetector - when it is loaded into the page and the Start button is pressed, in the Remote Stream I see nothing but progress circle and in the console I can see the following error reported:

Error message from server: Could not find media server at addressws://localhost:8888/kurento. Exiting with error SyntaxError: Module 'platedetector' is not installed in the Kurento Media Server

Note: One important clarification regarding the environment - I have installed the Kurento Media Server on a separate machine reachable within the local network, hence the way I call it from client machine is 192.168.x.x:8443.


Solution

  • Some tutorials need extra modules to be installed in the media server. You need to install the kms-platedetector debian package with

    sudo apt-get install kms-platedetector-6.0
    

    and restart your KMS afterwards.

    If your KMS is located in a different machine than the one you are running the tutorial, you'll need to tell that to the KurentoClient by starting the Node.js server app with a flag

    npm start -- --ws_uri=ws://kms_host:kms_host:kms_port/kurento
    

    That's in the documentation, and can be found here.