代码拉取完成,页面将自动刷新
#include "apierror.h"
const char *janus_get_api_error(int error) {
switch(error) {
case JANUS_OK:
return "Success";
case JANUS_ERROR_UNAUTHORIZED:
return "Unauthorized request (wrong or missing secret/token)";
case JANUS_ERROR_UNAUTHORIZED_PLUGIN:
return "Unauthorized access to plugin (token is not allowed to)";
case JANUS_ERROR_UNKNOWN:
return "Unknown error";
case JANUS_ERROR_TRANSPORT_SPECIFIC:
return "Transport specific error";
case JANUS_ERROR_MISSING_REQUEST:
return "Missing request";
case JANUS_ERROR_UNKNOWN_REQUEST:
return "Unknown request";
case JANUS_ERROR_INVALID_JSON:
return "Invalid JSON";
case JANUS_ERROR_INVALID_JSON_OBJECT:
return "Invalid JSON Object";
case JANUS_ERROR_MISSING_MANDATORY_ELEMENT:
return "Missing mandatory element";
case JANUS_ERROR_INVALID_REQUEST_PATH:
return "Invalid path for this request";
case JANUS_ERROR_SESSION_NOT_FOUND:
return "Session not found";
case JANUS_ERROR_HANDLE_NOT_FOUND:
return "Handle not found";
case JANUS_ERROR_PLUGIN_NOT_FOUND:
return "Plugin not found";
case JANUS_ERROR_PLUGIN_ATTACH:
return "Error attaching plugin";
case JANUS_ERROR_PLUGIN_MESSAGE:
return "Error sending message to plugin";
case JANUS_ERROR_PLUGIN_DETACH:
return "Error detaching from plugin";
case JANUS_ERROR_JSEP_UNKNOWN_TYPE:
return "Unsupported JSEP type";
case JANUS_ERROR_JSEP_INVALID_SDP:
return "Invalid SDP";
case JANUS_ERROR_TRICKE_INVALID_STREAM:
return "Invalid stream";
case JANUS_ERROR_INVALID_ELEMENT_TYPE:
return "Invalid element type";
case JANUS_ERROR_SESSION_CONFLICT:
return "Session ID already in use";
case JANUS_ERROR_UNEXPECTED_ANSWER:
return "Unexpected ANSWER (no OFFER)";
case JANUS_ERROR_TOKEN_NOT_FOUND:
return "Token not found";
case JANUS_ERROR_WEBRTC_STATE:
return "Wrong WebRTC state";
case JANUS_ERROR_NOT_ACCEPTING_SESSIONS:
return "Currently not accepting new sessions";
default:
return "Unknown error";
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。