improve examples (#778)

This commit is contained in:
Alessandro Ros
2025-05-04 17:00:18 +02:00
committed by GitHub
parent 4e3c5e6c0d
commit cc0c96626c
55 changed files with 494 additions and 435 deletions

View File

@@ -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() {