mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
4.0 KiB
4.0 KiB
GetTranscodeSessionsResponse
Example Usage
import { GetTranscodeSessionsResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetTranscodeSessionsResponse = {
contentType: "<value>",
statusCode: 510,
rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" },
}),
object: {
mediaContainer: {
size: 1,
transcodeSession: [
{
key: "vv3i2q2lax92qlzul1hbd4bx",
throttled: false,
complete: false,
progress: 1.7999999523162842,
size: -22,
speed: 25.100000381469727,
error: false,
duration: 1445695,
remaining: 53,
context: "streaming",
sourceVideoCodec: "h264",
sourceAudioCodec: "aac",
videoDecision: "transcode",
audioDecision: "transcode",
subtitleDecision: "burn",
protocol: "http",
container: "mkv",
videoCodec: "h264",
audioCodec: "opus",
audioChannels: 1,
transcodeHwRequested: true,
timeStamp: 1705895805.4919229,
maxOffsetAvailable: 29.53,
minOffsetAvailable: 3.003000020980835,
},
],
},
},
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
contentType |
string | ✔️ | HTTP response content type for this operation |
statusCode |
number | ✔️ | HTTP response status code for this operation |
rawResponse |
Response | ✔️ | Raw HTTP response; suitable for custom response parsing |
object |
operations.GetTranscodeSessionsResponseBody | ➖ | The Transcode Sessions |