I'm trying to run the magic mirror example from kurento-magic-mirror.
The video is working, but I can see no hat on the faces from the video.
You can the media stream on both ends when connecting to https://localhost:8443/
, but no add-on hats, as if the filter isn't running at all.
The example is running with npm start -- --ws_uri=ws://kms_host:kms_port/kurento
and my server already has the installation requirements as in here.
What could be the problem and how can I test that?
This issue can happen when your kurento server unable to load image files, specified by your client.
By default, the magic-mirror example assumes that both kurento and node.js servers are running locally. The image is passed to Kurento server by URL and the default one is https://localhost:8443/img/mario-wings.png
. But if you moved your kurento server somewhere outside, it's unable to reach your localhost by trying to fetch https://localhost:8443/img/mario-wings.png
.
You can try to hardcode any publicly available image url of supported type instead of one located on your localhost.
The place, where the overlay image url is assigned in the magic-mirror example is https://github.com/Kurento/kurento-tutorial-node/blob/bf718c50e4a77df258aa5faaa95915d52bae3f4e/kurento-magic-mirror/server.js#L244