mirror of https://bitbucket.org/ausocean/av.git
Using my amfEncodeNumber - tested and working
This commit is contained in:
parent
d886d43139
commit
0ae81ef52a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue