mirror of
https://github.com/aler9/gortsplib
synced 2025-10-12 18:40:07 +08:00
update examples
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user