Kurento 媒体服务器抛出“处理方法时出现意外错误:找不到工厂 'PlayerEndPoint'”
Kurento Media Server Throwing " Unexpected error while processing method: Factory 'PlayerEndPoint'' not found"
我是 Kurento 的新手。我从 link.
浏览了它的 json-rpc 文档
http://www.kurento.org/docs/5.0.3/mastering/kurento_protocol.html
1) 我已经安装了一个在端口 8888 上运行的本地 kurento 服务器。
2) 我使用了一个名为 wscat 的工具来建立与 kurento-websocket 的连接。
3) 我尝试使用以下命令连接到 kurento-server
wscat -c ws://localhost:8888/kurento
之后我从服务器收到连接提示。
来自上面的kurento协议文档link。我使用了以下请求 json
{
"jsonrpc": "2.0",
"id": 1,
"method": "create",
"params": {
"type": "PlayerEndPoint",
"creationParams": {
"pipeline": "6829986",
"uri": "http://host/app/video.mp4"
},
"sessionId": "c93e5bf0-4fd0-4888-9411-765ff5d89b93"
}
}
但是根据文档,发送此请求后我应该得到的响应是这样的。
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"value": "442352747",
"sessionId": "c93e5bf0-4fd0-4888-9411-765ff5d89b93"
}
}
但我得到
{
"error":
{"code":-32603,
"message":"Unexpected error while processing method: Factory PlayerEndPoint not found"
},
"id":1,
"jsonrpc":"2.0"
}
如果我没记错的话,上面的请求-json用于为播放器端点创建一个新的媒体管道,用于流式传输http://host/app/video.mp4。
我的请求-json对象有什么问题吗?或者我在提出这个请求之前必须做些什么吗?
请帮助我。
你有几个问题。首先是 PlayerEndpoint
拼写不正确(注意小写 "p" PlayerEnd-p-oint
)。第二个是您需要先创建一个 MediaPipeline
,然后才能创建 PlayerEndpoint
或任何其他媒体元素。
如果你是 Kurento 的新手,我的建议是你应该尝试使用官方的 Kurento 客户端实现(目前在 Java 和 JavaScript 中可用)。如果你想创建你自己的 Kurento 客户端,你需要仔细阅读文档,因为你需要管理很多细节(例如分布式垃圾收集器、WebSocket 重新连接机制等)
我是 Kurento 的新手。我从 link.
浏览了它的 json-rpc 文档http://www.kurento.org/docs/5.0.3/mastering/kurento_protocol.html
1) 我已经安装了一个在端口 8888 上运行的本地 kurento 服务器。 2) 我使用了一个名为 wscat 的工具来建立与 kurento-websocket 的连接。 3) 我尝试使用以下命令连接到 kurento-server
wscat -c ws://localhost:8888/kurento
之后我从服务器收到连接提示。
来自上面的kurento协议文档link。我使用了以下请求 json
{
"jsonrpc": "2.0",
"id": 1,
"method": "create",
"params": {
"type": "PlayerEndPoint",
"creationParams": {
"pipeline": "6829986",
"uri": "http://host/app/video.mp4"
},
"sessionId": "c93e5bf0-4fd0-4888-9411-765ff5d89b93"
}
}
但是根据文档,发送此请求后我应该得到的响应是这样的。
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"value": "442352747",
"sessionId": "c93e5bf0-4fd0-4888-9411-765ff5d89b93"
}
}
但我得到
{
"error":
{"code":-32603,
"message":"Unexpected error while processing method: Factory PlayerEndPoint not found"
},
"id":1,
"jsonrpc":"2.0"
}
如果我没记错的话,上面的请求-json用于为播放器端点创建一个新的媒体管道,用于流式传输http://host/app/video.mp4。
我的请求-json对象有什么问题吗?或者我在提出这个请求之前必须做些什么吗?
请帮助我。
你有几个问题。首先是 PlayerEndpoint
拼写不正确(注意小写 "p" PlayerEnd-p-oint
)。第二个是您需要先创建一个 MediaPipeline
,然后才能创建 PlayerEndpoint
或任何其他媒体元素。
如果你是 Kurento 的新手,我的建议是你应该尝试使用官方的 Kurento 客户端实现(目前在 Java 和 JavaScript 中可用)。如果你想创建你自己的 Kurento 客户端,你需要仔细阅读文档,因为你需要管理很多细节(例如分布式垃圾收集器、WebSocket 重新连接机制等)