improve example comments

This commit is contained in:
aler9
2021-04-04 19:43:48 +02:00
parent fc3d84be56
commit c2d5ced43b
8 changed files with 15 additions and 12 deletions

View File

@@ -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