Skip to content

MediaUploadParams

media/upload params: one chunk of a client-minted upload. All members required.

  • chunkBase64
  • chunkCount
  • chunkIndex
  • commandId
  • mediaType
  • sessionId
  • totalBytes
  • uploadId
Source

schema/msp/experimental/msp.schema.json#/types/MediaUploadParams

{
"description": "`media/upload` params: one chunk of a\nclient-minted upload. All members required.",
"properties": {
"chunkBase64": {
"description": "This chunk's bytes; each call's frame stays in the budget.",
"type": "string"
},
"chunkCount": {
"description": "The upload's chunk total; positive.",
"type": "integer"
},
"chunkIndex": {
"description": "This chunk's 0-based position.",
"type": "integer"
},
"commandId": {
"description": "One per call; replay answers the recorded receipt.",
"type": "string"
},
"mediaType": {
"description": "`video/mp4` or `video/quicktime`, matching `VideoInput`.",
"type": "string"
},
"sessionId": {
"description": "The session owning the video store.",
"type": "string"
},
"totalBytes": {
"description": "The assembled byte count; must equal the bytes the chunks deliver.",
"type": "integer"
},
"uploadId": {
"description": "The client-minted upload id (UUIDv7), sent on every chunk.",
"type": "string"
}
},
"required": [
"chunkBase64",
"chunkCount",
"chunkIndex",
"commandId",
"mediaType",
"sessionId",
"totalBytes",
"uploadId"
],
"type": "object"
}