Skip to content

Commit

Permalink
api: Add profiles field to asset (#2217)
Browse files Browse the repository at this point in the history
* api/schema: Add profiles field to assets

* api/cannon: Propagate recording profiles to asset
  • Loading branch information
victorges authored Jun 13, 2024
1 parent 56e4699 commit 4452fcc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/api/src/schema/api-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,15 @@ components:
ID of the asset from which this asset was created.
creatorId:
$ref: "#/components/schemas/creator-id"
profiles:
type: array
description: |
Requested profiles for the asset to be transcoded into. Currently
only supported for livestream recording assets, configured through
the `stream.recordingSpec` field. If this is not present it means
that default profiles were derived from the input metadata.
items:
$ref: "#/components/schemas/ffmpeg-profile"
storage:
additionalProperties: false
properties:
Expand Down
1 change: 1 addition & 0 deletions packages/api/src/webhooks/cannon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ export default class WebhookCannon {
projectId: session.projectId,
createdAt: session.createdAt,
source: { type: "recording", sessionId: session.id },
profiles: session.recordingSpec?.profiles,
status: { phase: "waiting", updatedAt: Date.now() },
name: `live-${startedAt}`,
objectStoreId:
Expand Down

0 comments on commit 4452fcc

Please sign in to comment.