{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://velox.dev/schema/methods/media.addVariant.schema.json", "title": "media.addVariant", "description": "Turn one enumerated variant into a task. The daemon fetches the segments in parallel and muxes them with ffmpeg; the result is an ordinary task that appears in the list like any other download. Refused with -32602 when the variant is DRM-protected.", "x-privileged": false, "x-transports": [ "uds", "ws" ], "x-deadlineMs": 30000, "x-errors": [ -32011, -32602, -32013 ], "x-wsRestrictions": [ "Same saveDir restriction as download.add." ], "type": "object", "properties": { "params": { "type": "object", "additionalProperties": false, "description": "spec carries the same destination and queueing fields as download.add; its url is ignored because the manifest and variant determine the source.", "required": [ "manifestUrl", "variantId" ], "properties": { "manifestUrl": { "type": "string", "format": "uri" }, "variantId": { "type": "string" }, "audioVariantId": { "type": [ "string", "null" ], "description": "For DASH and HLS renditions where audio is a separate track to be muxed in." }, "spec": { "oneOf": [ { "$ref": "https://velox.dev/schema/types/DownloadSpec.schema.json" }, { "type": "null" } ] } } }, "result": { "type": "object", "additionalProperties": false, "required": [ "taskId", "state" ], "properties": { "taskId": { "type": "string", "format": "uuid" }, "state": { "$ref": "https://velox.dev/schema/types/TaskState.schema.json" }, "estimatedBytes": { "type": [ "integer", "null" ], "minimum": 0 } } } } }