Ported RTMP_SetBufferMS and tested

This commit is contained in:
saxon 2018-07-20 21:34:38 +09:30
parent cba28550e2
commit 5938dcf0d5
1 changed files with 5 additions and 1 deletions

View File

@ -370,7 +370,7 @@ func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) {
}
rtmpEnableWrite(rtmp)
C.RTMP_SetBufferMS(rtmp, 3600*1000)
rtmpSetBufferMS(rtmp, 3600*1000)
if C.RTMP_Connect(rtmp, nil) == 0 {
//C.RTMP_Close(rtmp)
//C.RTMP_Free(rtmp)
@ -559,6 +559,10 @@ func rtmpEnableWrite(r *C.RTMP) {
r.Link.protocol |= RTMP_FEATURE_WRITE
}
func rtmpSetBufferMS(r *C.RTMP, size int32) {
r.m_nBufferMS = C.int(size)
}
/*
func socksSetup(r *RTMP, sockshost *AVal) {
if sockshost.av_len != 0 {