mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
support amf0 and json to convert with each other.
This commit is contained in:
parent
3f7e69b617
commit
b59d9ba6a1
7 changed files with 181 additions and 21 deletions
|
@ -81,7 +81,7 @@ int srs_api_response_jsonp_code(ISrsHttpResponseWriter* w, string callback, int
|
|||
SrsJsonObject* obj = SrsJsonAny::object();
|
||||
SrsAutoFree(SrsJsonObject, obj);
|
||||
|
||||
obj->set("code", SrsJsonAny::ingeter(code));
|
||||
obj->set("code", SrsJsonAny::integer(code));
|
||||
|
||||
return srs_api_response_jsonp(w, callback, obj->to_json());
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ int srs_api_response_json_code(ISrsHttpResponseWriter* w, int code)
|
|||
SrsJsonObject* obj = SrsJsonAny::object();
|
||||
SrsAutoFree(SrsJsonObject, obj);
|
||||
|
||||
obj->set("code", SrsJsonAny::ingeter(code));
|
||||
obj->set("code", SrsJsonAny::integer(code));
|
||||
|
||||
return srs_api_response_json(w, obj->to_json());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue