stream-server/rtmp/data_loop.go
2023-08-17 16:35:06 +05:00

17 lines
222 B
Go

package rtmp
import (
"fmt"
)
func HandleDataLoop(chnk_wrp_ptr *ChunkWrapper) {
for {
p, err := chnk_wrp_ptr.ReadChunk()
if err != nil {
return
}
if p != nil {
fmt.Println(p.msg_type, p.msg_len)
}
}
}