diff --git a/internal/pkg/queue/queue.go b/internal/pkg/queue/queue.go index d9f6a54208..b79786f67d 100644 --- a/internal/pkg/queue/queue.go +++ b/internal/pkg/queue/queue.go @@ -36,14 +36,16 @@ type TranscodeRequest struct { BlobID string WorkspaceUUID string ContentType string + Source map[string]any } // TranscodeResult represents transcode result. type TranscodeResult struct { - BlobID string `json:"blobId"` - WorkspaceUUID string `json:"workspaceUuid"` - Playlist string `json:"playlist"` - Thumbnail string `json:"thumbnail"` + BlobID string `json:"blobId"` + WorkspaceUUID string `json:"workspaceUuid"` + Source map[string]any `json:"source"` + Playlist string `json:"playlist"` + Thumbnail string `json:"thumbnail"` } // ConsumerOptions represents options for the consumer diff --git a/internal/pkg/queue/worker.go b/internal/pkg/queue/worker.go index 60def900d5..a80b4c702a 100644 --- a/internal/pkg/queue/worker.go +++ b/internal/pkg/queue/worker.go @@ -115,6 +115,7 @@ func (w *Worker) processMessage(ctx context.Context, msg kafka.Message, logger * result := TranscodeResult{ BlobID: req.BlobID, WorkspaceUUID: req.WorkspaceUUID, + Source: req.Source, Playlist: res.Playlist, Thumbnail: res.Thumbnail, }