mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 23:02:45 +08:00
update doc
This commit is contained in:
@@ -57,13 +57,13 @@ func main() {
|
||||
|
||||
buf := make([]byte, 2048)
|
||||
for {
|
||||
// read RTP frames from the source
|
||||
// read RTP packets from the source
|
||||
n, _, err := pc.ReadFrom(buf)
|
||||
if err != nil {
|
||||
break
|
||||
}
|
||||
|
||||
// write RTP frames
|
||||
// write RTP packets
|
||||
err = conn.WriteFrame(0, gortsplib.StreamTypeRTP, buf[:n])
|
||||
if err != nil {
|
||||
break
|
||||
|
Reference in New Issue
Block a user