stream-server/rtmp/data_loop.go

18 lines
222 B
Go
Raw Normal View History

2023-08-17 16:35:06 +05:00
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)
}
}
}