18 lines
222 B
Go
18 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)
|
||
|
}
|
||
|
}
|
||
|
}
|