mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-14 16:01:09 +02:00
added objectEncoding=0 into connect() reply
This commit is contained in:
parent
15405e8edd
commit
513f2f7e83
|
@ -129,6 +129,7 @@ ngx_rtmp_cmd_connect(ngx_rtmp_session_t *s, ngx_rtmp_connect_t *v)
|
|||
|
||||
static double trans;
|
||||
static double capabilities = NGX_RTMP_CAPABILITIES;
|
||||
static double object_encoding = 0;
|
||||
|
||||
static ngx_rtmp_amf_elt_t out_obj[] = {
|
||||
|
||||
|
@ -153,7 +154,11 @@ ngx_rtmp_cmd_connect(ngx_rtmp_session_t *s, ngx_rtmp_connect_t *v)
|
|||
|
||||
{ NGX_RTMP_AMF_STRING,
|
||||
ngx_string("description"),
|
||||
"Connection succeeded.", 0 }
|
||||
"Connection succeeded.", 0 },
|
||||
|
||||
{ NGX_RTMP_AMF_NUMBER,
|
||||
ngx_string("objectEncoding"),
|
||||
&object_encoding, 0 }
|
||||
};
|
||||
|
||||
static ngx_rtmp_amf_elt_t out_elts[] = {
|
||||
|
|
Loading…
Reference in a new issue