diff --git a/examples/client-publish-aac/main.go b/examples/client-publish-aac/main.go index f93574b6..93cd8461 100644 --- a/examples/client-publish-aac/main.go +++ b/examples/client-publish-aac/main.go @@ -49,7 +49,7 @@ func main() { buf = make([]byte, 2048) for { - // read RTP packets from the source + // read packets from the source n, _, err := pc.ReadFrom(buf) if err != nil { panic(err) diff --git a/examples/client-publish-h264/main.go b/examples/client-publish-h264/main.go index e8697ab7..5a3c76e8 100644 --- a/examples/client-publish-h264/main.go +++ b/examples/client-publish-h264/main.go @@ -50,7 +50,7 @@ func main() { buf := make([]byte, 2048) for { - // read RTP packets from the source + // read packets from the source n, _, err := pc.ReadFrom(buf) if err != nil { panic(err) diff --git a/examples/client-publish-options/main.go b/examples/client-publish-options/main.go index cd859aad..3a81b6f3 100644 --- a/examples/client-publish-options/main.go +++ b/examples/client-publish-options/main.go @@ -61,7 +61,7 @@ func main() { buf := make([]byte, 2048) for { - // read RTP packets from the source + // read packets from the source n, _, err := pc.ReadFrom(buf) if err != nil { panic(err) diff --git a/examples/client-publish-opus/main.go b/examples/client-publish-opus/main.go index 4231fafb..87bc44af 100644 --- a/examples/client-publish-opus/main.go +++ b/examples/client-publish-opus/main.go @@ -49,7 +49,7 @@ func main() { buf = make([]byte, 2048) for { - // read RTP packets from the source + // read packets from the source n, _, err := pc.ReadFrom(buf) if err != nil { panic(err) diff --git a/examples/client-publish-pause/main.go b/examples/client-publish-pause/main.go index bf2cd0d8..b0720aec 100644 --- a/examples/client-publish-pause/main.go +++ b/examples/client-publish-pause/main.go @@ -57,7 +57,7 @@ func main() { buf := make([]byte, 2048) for { - // read RTP packets from the source + // read packets from the source n, _, err := pc.ReadFrom(buf) if err != nil { break diff --git a/examples/client-read-h264-save-to-disk/main.go b/examples/client-read-h264-save-to-disk/main.go index 24b9c38b..7a506f3f 100644 --- a/examples/client-read-h264-save-to-disk/main.go +++ b/examples/client-read-h264-save-to-disk/main.go @@ -71,7 +71,7 @@ func main() { }) mux.SetPCRPID(256) - // read RTP packets + // read packets err = conn.ReadFrames(func(trackID int, streamType gortsplib.StreamType, payload []byte) { if trackID != h264TrackID { return diff --git a/examples/client-read-h264/main.go b/examples/client-read-h264/main.go index ce5cfe75..d7ca0cf4 100644 --- a/examples/client-read-h264/main.go +++ b/examples/client-read-h264/main.go @@ -38,7 +38,7 @@ func main() { // instantiate a RTP/H264 decoder dec := rtph264.NewDecoder() - // read RTP packets + // read packets err = conn.ReadFrames(func(trackID int, streamType gortsplib.StreamType, payload []byte) { if streamType != gortsplib.StreamTypeRTP { return diff --git a/examples/client-read-options/main.go b/examples/client-read-options/main.go index c714b784..1035092b 100644 --- a/examples/client-read-options/main.go +++ b/examples/client-read-options/main.go @@ -29,9 +29,9 @@ func main() { } defer conn.Close() - // read RTP packets + // read packets err = conn.ReadFrames(func(trackID int, streamType gortsplib.StreamType, payload []byte) { - fmt.Printf("frame from track %d, type %v, size %d\n", trackID, streamType, len(payload)) + fmt.Printf("packet from track %d, type %v, size %d\n", trackID, streamType, len(payload)) }) panic(err) } diff --git a/examples/client-read-partial/main.go b/examples/client-read-partial/main.go index 2f6a05de..3fb95a23 100644 --- a/examples/client-read-partial/main.go +++ b/examples/client-read-partial/main.go @@ -51,9 +51,9 @@ func main() { panic(err) } - // read RTP packets + // read packets err = conn.ReadFrames(func(trackID int, streamType gortsplib.StreamType, payload []byte) { - fmt.Printf("frame from track %d, type %v, size %d\n", trackID, streamType, len(payload)) + fmt.Printf("packet from track %d, type %v, size %d\n", trackID, streamType, len(payload)) }) panic(err) } diff --git a/examples/client-read-pause/main.go b/examples/client-read-pause/main.go index 8ccbede3..f05cfb4f 100644 --- a/examples/client-read-pause/main.go +++ b/examples/client-read-pause/main.go @@ -22,12 +22,12 @@ func main() { defer conn.Close() for { - // read RTP packets + // read packets done := make(chan struct{}) go func() { defer close(done) conn.ReadFrames(func(trackID int, streamType gortsplib.StreamType, payload []byte) { - fmt.Printf("frame from track %d, type %v, size %d\n", trackID, streamType, len(payload)) + fmt.Printf("packet from track %d, type %v, size %d\n", trackID, streamType, len(payload)) }) }() diff --git a/examples/client-read/main.go b/examples/client-read/main.go index 74656d63..eded7418 100644 --- a/examples/client-read/main.go +++ b/examples/client-read/main.go @@ -17,9 +17,9 @@ func main() { } defer conn.Close() - // read RTP packets + // read packets err = conn.ReadFrames(func(trackID int, streamType gortsplib.StreamType, payload []byte) { - fmt.Printf("frame from track %d, type %v, size %d\n", trackID, streamType, len(payload)) + fmt.Printf("packet from track %d, type %v, size %d\n", trackID, streamType, len(payload)) }) panic(err) }