【发布时间】:2026-01-05 18:50:01
【问题描述】:
我对 Kurento 很陌生。我从这个链接浏览了它的 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 协议文档链接。我使用了以下请求 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"
}
如果我没记错的话,上面的 request-json 用于为播放器端点创建一个新的媒体管道,用于流式传输 http://host/app/video.mp4。
我的 request-json 对象是否有任何问题,或者在发出此请求之前我必须做些什么。
请帮帮我。
【问题讨论】: