timeline rendering

This commit is contained in:
2026-01-28 21:30:47 -05:00
parent c3ddcf16bf
commit dc5dc4bff4
6 changed files with 143 additions and 21 deletions

View File

@@ -33,9 +33,20 @@ public static class ConversionExtensions
Version = entry.Version,
CameraId = entry.CameraId,
Date = Google.Protobuf.WellKnownTypes.Timestamp.FromDateTime(entry.Date),
Metadata = entry.Metadata.ToRpc(),
FilePath = entry.Filepath,
Id = entry.Id.ToString(),
Type = entry.Type.ToRpc()
};
}
public static MediaMetadata ToRpc(this Models.MediaMetadata metadata)
{
return new MediaMetadata
{
Duration = metadata.Duration,
Height = metadata.Height,
Width = metadata.Width
};
}
}