produce same absolute time in RTSP and HLS (#1249)

* add a NTP timestamp to each data unit
* use that NTP timestamp in all protocols
This commit is contained in:
Alessandro Ros 2022-11-28 09:00:05 +01:00 committed by GitHub
parent 7a49b92d9b
commit e605727c78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 69 additions and 35 deletions

View file

@ -62,6 +62,7 @@ func (s *rpiCameraSource) run(ctx context.Context) error {
trackID: 0,
pts: dts,
nalus: nalus,
ntp: time.Now(),
})
if err != nil {
s.Log(logger.Warn, "%v", err)