mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-25 12:32:01 -08:00
HLS client: write PMT at the beginning of every segment
This commit is contained in:
parent
dee045f961
commit
3ec4ba6698
1 changed files with 4 additions and 0 deletions
|
|
@ -52,6 +52,10 @@ func newTSFile(videoTrack *gortsplib.Track, audioTrack *gortsplib.Track) *tsFile
|
|||
t.mux.SetPCRPID(257)
|
||||
}
|
||||
|
||||
// write PMT at the beginning of every segment
|
||||
// so no packets are lost
|
||||
t.mux.WriteTables()
|
||||
|
||||
return t
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue