mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-16 04:30:52 +08:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user