mirror of https://bitbucket.org/ausocean/av.git
Forgot to actually ues AMFProp_GetNumber - tested and working
This commit is contained in:
parent
9c460b90cf
commit
27006d8fd3
|
@ -1977,7 +1977,7 @@ func C_HandleInvoke(r *C.RTMP, body *byte, nBodySize uint32) int32 {
|
|||
//C.AMF_Dump(&obj)
|
||||
//C.AMFProp_GetString(C_AMF_GetProp(&obj, nil, 0), &method)
|
||||
C_AMFProp_GetString(C_AMF_GetProp(&obj, nil, 0), &method)
|
||||
txn = float64(C.AMFProp_GetNumber(C_AMF_GetProp(&obj, nil, 1)))
|
||||
txn = float64(C_AMFProp_GetNumber(C_AMF_GetProp(&obj, nil, 1)))
|
||||
// TODO use new logger here
|
||||
// RTMP_Log(RTMP_LOGDEBUG, "%s, server invoking <%s>", __FUNCTION__, method.av_val);
|
||||
|
||||
|
@ -2062,7 +2062,7 @@ func C_HandleInvoke(r *C.RTMP, body *byte, nBodySize uint32) int32 {
|
|||
case C_AVMATCH(&methodInvoked, &av_createStream) != 0:
|
||||
{
|
||||
log.Println("5")
|
||||
r.m_stream_id = C.int(C.AMFProp_GetNumber(C_AMF_GetProp(&obj, nil, 3)))
|
||||
r.m_stream_id = C.int(C_AMFProp_GetNumber(C_AMF_GetProp(&obj, nil, 3)))
|
||||
|
||||
if (r.Link.protocol & RTMP_FEATURE_WRITE) != 0 {
|
||||
log.Println("5.1")
|
||||
|
|
Loading…
Reference in New Issue