mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
update docs
This commit is contained in:
@@ -52,13 +52,13 @@ func main() {
|
||||
buf = make([]byte, 2048)
|
||||
var pkt rtp.Packet
|
||||
for {
|
||||
// read packets from the source
|
||||
// read RTP packets from the source
|
||||
n, _, err := pc.ReadFrom(buf)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// marshal RTP packets
|
||||
// parse RTP packets
|
||||
err = pkt.Unmarshal(buf[:n])
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Reference in New Issue
Block a user