What does this code mean, “404=Not Found; 404;-32601”? This occurs while joining a room in the Kurento media server

一曲冷凌霜 提交于 2019-12-22 05:54:40

问题


I am working in android Application where i have stream a video. I am using kurento media server for Streaming . I am Connecting to KMS by using the following Code:

    executor = new LooperExecutor();
    executor.requestStart();

    String wsRoomUri = "wss://192.168.0.104:8433/kurento";
    kurentoRoomAPI = new KurentoRoomAPI(executor, wsRoomUri, this);

    CertificateFactory cf;
    try {
        cf = CertificateFactory.getInstance("X.509");
        InputStream caInput = new BufferedInputStream(getAssets().open("kurento_room_base64.cer"));
        Certificate ca = cf.generateCertificate(caInput);
        kurentoRoomAPI.addTrustedCertificate("ca", ca);
    } catch (CertificateException |IOException e) {
        e.printStackTrace();
    }

    kurentoRoomAPI.useSelfSignedCertificate(true);

    kurentoRoomAPI.connectWebSocket(); 

It gets connected. But When I try to join the room it shows the error and Error is:

.vtt.nubotest E/MainActivity: Code:-32601 
04-18 17:30:18.061 11699-11938/fi.vtt.nubotest E/MainActivity: Data:null

I am Receiving error in :

@Override
    public void onRoomError(RoomError error) {
    Toast.makeText(MainActivity.this,"OnError",Toast.LENGTH_SHORT).show();
    Log.e(TAG,"Code:"+ error.getCode());

    Log.e(TAG,"Data:"+ error.getData());
    if(error.getCode() == 104) {
        showFinishingError("Room error", "Username already taken");
    }
}

In Server Error Log I can see the following Error in json Format:

Response: >{"error":{"code":-32601,"message":"Method not                      
found."},"id":4,"jsonrpc":"2.0"}

来源:https://stackoverflow.com/questions/43471654/what-does-this-code-mean-404-not-found-404-32601-this-occurs-while-joining

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!