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) } } }