mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 14:52:46 +08:00
update docs
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
// This example shows how to
|
||||
// 1. generate RTP/H264 frames from a file with Gstreamer
|
||||
// 2. connect to a RTSP server, announce a H264 track
|
||||
// 2. connect to a RTSP server, announce an H264 track
|
||||
// 3. write the frames to the server for 5 seconds
|
||||
// 4. pause for 5 seconds
|
||||
// 5. repeat
|
||||
@@ -36,7 +36,7 @@ func main() {
|
||||
}
|
||||
fmt.Println("stream connected")
|
||||
|
||||
// create a H264 track
|
||||
// create an H264 track
|
||||
track, err := gortsplib.NewTrackH264(96, &gortsplib.TrackConfigH264{sps, pps})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Reference in New Issue
Block a user