mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
10 KiB
10 KiB
GetPlaylistContentsMedia
Example Usage
import { GetPlaylistContentsMedia } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetPlaylistContentsMedia = {
id: 15,
duration: 141416,
bitrate: 2273,
width: 1920,
height: 814,
aspectRatio: 2.35,
audioChannels: 2,
audioCodec: "aac",
videoCodec: "h264",
videoResolution: "1080",
container: "mp4",
videoFrameRate: "24p",
optimizedForStreaming: 0,
audioProfile: "lc",
has64bitOffsets: false,
videoProfile: "high",
part: [
{
id: 15,
key: "/library/parts/15/1705637151/file.mp4",
duration: 141416,
file: "/movies/Serenity (2005)/Serenity (2005).mp4",
size: 40271948,
audioProfile: "lc",
container: "mp4",
has64bitOffsets: false,
optimizedForStreaming: false,
videoProfile: "high",
},
],
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id |
number | ➖ | N/A | 15 |
duration |
number | ➖ | N/A | 141416 |
bitrate |
number | ➖ | N/A | 2273 |
width |
number | ➖ | N/A | 1920 |
height |
number | ➖ | N/A | 814 |
aspectRatio |
number | ➖ | N/A | 2.35 |
audioChannels |
number | ➖ | N/A | 2 |
audioCodec |
string | ➖ | N/A | aac |
videoCodec |
string | ➖ | N/A | h264 |
videoResolution |
string | ➖ | N/A | 1080 |
container |
string | ➖ | N/A | mp4 |
videoFrameRate |
string | ➖ | N/A | 24p |
optimizedForStreaming |
number | ➖ | N/A | 0 |
audioProfile |
string | ➖ | N/A | lc |
has64bitOffsets |
boolean | ➖ | N/A | false |
videoProfile |
string | ➖ | N/A | high |
part |
operations.GetPlaylistContentsPart[] | ➖ | N/A |