Using my amfEncodeNumber - tested and working

This commit is contained in:
saxon 2018-07-29 09:45:14 +09:30
parent d886d43139
commit 0ae81ef52a
1 changed files with 3 additions and 3 deletions

View File

@ -963,9 +963,9 @@ func sendConnectPacket(r *C.RTMP, cp *C.RTMPPacket) int {
//(*C.char)(unsafe.Pointer(pend)), &av_connect)))
enc = amfEncodeString(enc, pend, &av_connect)
r.m_numInvokes += 1
enc = (*byte)(unsafe.Pointer(C.AMF_EncodeNumber((*C.char)(unsafe.Pointer(enc)),
(*C.char)(unsafe.Pointer(pend)), C.double(r.m_numInvokes))))
//enc = amfEncodeNumber(enc, pend, float64(r.m_numInvokes))
//enc = (*byte)(unsafe.Pointer(C.AMF_EncodeNumber((*C.char)(unsafe.Pointer(enc)),
//(*C.char)(unsafe.Pointer(pend)), C.double(r.m_numInvokes))))
enc = amfEncodeNumber(enc, pend, float64(r.m_numInvokes))
*indxBytePtr(unsafe.Pointer(enc), 0) = AMF_OBJECT