Kurento 教程魔镜示例不起作用

Kurento tutorial magic mirror example doesn't work

我正在尝试 运行 来自 kurento-magic-mirror 的魔镜示例。

视频播放正常,但我在视频中看不到脸上戴着帽子。 连接到 https://localhost:8443/ 时,您可以在两端使用媒体流,但没有附加功能,就好像过滤器根本不是 运行ning 一样。

示例是 运行 npm start -- --ws_uri=ws://kms_host:kms_port/kurento 并且我的服务器已经具有 here 中的安装要求。

可能是什么问题,我该如何测试?

当您的 kurento 服务器无法加载客户端指定的图像文件时,可能会发生此问题。 默认情况下,magic-mirror 示例假定 kurento 和 node.js 服务器都在本地 运行。图片通过 URL 传递给 Kurento 服务器,默认为 https://localhost:8443/img/mario-wings.png。但是如果你把你的 kurento 服务器移到了外面的某个地方,它就无法通过尝试获取 https://localhost:8443/img/mario-wings.png.

来访问你的本地主机。

您可以尝试对任何受支持类型的公开可用图像 url 进行硬编码,而不是对本地主机上的图像进行硬编码。

在magic-mirror示例中分配叠加图像url的位置是https://github.com/Kurento/kurento-tutorial-node/blob/bf718c50e4a77df258aa5faaa95915d52bae3f4e/kurento-magic-mirror/server.js#L244