mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for bug #87, response the server SrsId to flash.
This commit is contained in:
parent
d74921e1ab
commit
5ff1ce7cba
9 changed files with 83 additions and 33 deletions
|
@ -866,6 +866,8 @@ int SrsRtmpServer::response_connect_app(SrsRequest *req, const char* server_ip)
|
|||
if (server_ip) {
|
||||
data->set("srs_server_ip", SrsAmf0Any::str(server_ip));
|
||||
}
|
||||
// for edge to directly get the id of client.
|
||||
data->set("srs_id", SrsAmf0Any::number(_srs_context->get_id()));
|
||||
|
||||
if ((ret = protocol->send_and_free_packet(pkt, 0)) != ERROR_SUCCESS) {
|
||||
srs_error("send connect app response message failed. ret=%d", ret);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue