Compare commits

...

3 Commits

Author SHA1 Message Date
Cedric Verstraeten
fb876bd216 Update main.go 2025-02-06 08:32:30 +01:00
Cédric Verstraeten
865aec88fc Merge pull request #163 from kerberos-io/fix/webrtc-sample-timing
Fix / WebRTC sample timing
2025-02-06 08:32:04 +01:00
Cedric Verstraeten
9792bdf494 Update main.go 2025-02-06 08:28:17 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ import (
"github.com/kerberos-io/agent/machinery/src/models"
)
const VERSION = "3.3.3"
const VERSION = "3.3.4"
const letterBytes = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"

View File

@@ -401,7 +401,7 @@ func WriteToTrack(livestreamCursor *packets.QueueCursor, configuration *models.C
if pkt.IsVideo {
// Calculate the difference
bufferDuration := pkt.Time - previousTimeVideo
bufferDuration := int64(pkt.TimeLegacy) - previousTimeVideo
previousTimeVideo = pkt.Time
// Start at the first keyframe
@@ -434,7 +434,7 @@ func WriteToTrack(livestreamCursor *packets.QueueCursor, configuration *models.C
}
// Calculate the difference
bufferDuration := pkt.Time - previousTimeAudio
bufferDuration := int64(pkt.TimeLegacy) - previousTimeAudio
previousTimeAudio = pkt.Time
// We will send the audio