我是非常新的Kurento。我从这个链接浏览了它的json-rpc文档。Kurento媒体服务器投掷“处理方法:工厂'PlayerEndPoint''未找到意外的错误”
http://www.kurento.org/docs/5.0.3/mastering/kurento_protocol.html
1)我已经安装它运行的端口8888。 2)I使用了一种叫做wscat工具建立到kurento-的WebSocket的连接上的本地服务器kurento。 3)我试图用以下命令
wscat -c ws://localhost:8888/kurento
连接到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"
}
如果我没看错的上述请求,JSON是用于创建,用来流http://host/app/video.mp4玩家终点新的媒体渠道。
在我的request-json对象中是否有任何问题,或者在给出这个请求之前我必须做些什么。
请帮帮我。
针对kurento的json-rpc上的文档没有用处。你能否向我建议我可以阅读的任何其他资源。 – 2015-03-04 06:50:03
@sathyaNarrayanan如果您需要知道哪些方法通过Kurento协议暴露出来,您将不得不在不同的github项目中查看.kmd文件(基本上[kms-core](https://github.com/Kurento/kms) -core/tree/master/src/server/interface),[kms-elements](https://github.com/Kurento/kms-elements/tree/master/src/server/interface)和[kms-filters] (https://github.com/Kurento/kms-filters/tree/master/src/server/interface)) – igracia 2015-03-10 15:06:02