{ "name": "media.addVariant \u2014 download 1080p with the English audio muxed in", "description": "The result is an ordinary task that appears in the list like any other download.", "request": { "jsonrpc": "2.0", "id": 62, "method": "media.addVariant", "params": { "manifestUrl": "https://cdn.example.org/v/master.m3u8", "variantId": "v-1080p", "audioVariantId": "a-en", "spec": { "url": "https://cdn.example.org/v/master.m3u8", "filename": "episode-42.mkv", "categoryId": "video", "startMode": "now" } } }, "response": { "jsonrpc": "2.0", "id": 62, "result": { "taskId": "$uuid", "state": "connecting", "estimatedBytes": 1923000000 } }, "assertions": [ "spec.url is ignored: the manifest and variant determine the source", "a DRM-protected variant is refused with -32602 rather than started and failed later", "segments are fetched in parallel and muxed with ffmpeg into one container" ] }