diff --git a/Runtime/Scripts/RtcVideoSource.cs b/Runtime/Scripts/RtcVideoSource.cs index dbfe2b7..7e06c68 100644 --- a/Runtime/Scripts/RtcVideoSource.cs +++ b/Runtime/Scripts/RtcVideoSource.cs @@ -188,7 +188,8 @@ protected virtual bool SendFrame() var capture = request.request; capture.SourceHandle = (ulong)Handle.DangerousGetHandle(); capture.Rotation = GetVideoRotation(); - capture.TimestampUs = DateTimeOffset.Now.ToUnixTimeMilliseconds(); + var now = DateTimeOffset.UtcNow; + capture.TimestampUs = now.ToUnixTimeMilliseconds() * 1000 + (now.Ticks % TimeSpan.TicksPerMillisecond) / 10; capture.Buffer = buffer; using var response = request.Send(); _reading = false;