mirror of
https://github.com/aler9/gortsplib
synced 2025-09-27 11:32:08 +08:00
improve examples (#778)
This commit is contained in:
@@ -17,10 +17,10 @@ import (
|
||||
)
|
||||
|
||||
// This example shows how to
|
||||
// 1. read H264 frames from a video file in MPEG-TS format
|
||||
// 2. connect to a RTSP server, announce a H264 format
|
||||
// 3. wrap frames into RTP packets
|
||||
// 4. write RTP packets to the server
|
||||
// 1. read H264 frames from a video file in MPEG-TS format.
|
||||
// 2. connect to a RTSP server, announce a H264 format.
|
||||
// 3. wrap frames into RTP packets.
|
||||
// 4. write RTP packets to the server.
|
||||
|
||||
func findTrack(r *mpegts.Reader) (*mpegts.Track, error) {
|
||||
for _, track := range r.Tracks() {
|
||||
|
Reference in New Issue
Block a user