mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
improve example comments
This commit is contained in:
@@ -57,13 +57,13 @@ func main() {
|
||||
|
||||
buf := make([]byte, 2048)
|
||||
for {
|
||||
// read frames from the source
|
||||
// read RTP frames from the source
|
||||
n, _, err := pc.ReadFrom(buf)
|
||||
if err != nil {
|
||||
break
|
||||
}
|
||||
|
||||
// write track frames
|
||||
// write RTP frames
|
||||
err = conn.WriteFrame(track.ID, gortsplib.StreamTypeRTP, buf[:n])
|
||||
if err != nil {
|
||||
break
|
||||
|
Reference in New Issue
Block a user