mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
6.3 KiB
6.3 KiB
GetOnDeckMedia
Example Usage
import { GetOnDeckMedia } from "@lukehagar/plexjs";
let value: GetOnDeckMedia = {
id: 80994,
duration: 420080,
bitrate: 1046,
width: 1920,
height: 1080,
aspectRatio: 1.78,
audioChannels: 2,
audioCodec: "aac",
videoCodec: "hevc",
videoResolution: "1080",
container: "mkv",
videoFrameRate: "PAL",
audioProfile: "lc",
videoProfile: "main",
part: [
{
id: 80994,
key: "/library/parts/80994/1655007810/file.mkv",
duration: 420080,
file: "/tvshows/Bluey (2018)/Bluey (2018) - S02E33 - Circus.mkv",
size: 55148931,
audioProfile: "lc",
container: "mkv",
videoProfile: "main",
stream: [
{
id: 211234,
streamType: 1,
codec: "hevc",
index: 0,
bitrate: 918,
language: "English",
languageTag: "en",
languageCode: "eng",
bitDepth: 8,
chromaLocation: "left",
chromaSubsampling: "4:2:0",
codedHeight: 1080,
codedWidth: 1920,
colorRange: "tv",
frameRate: 25,
height: 1080,
level: 120,
profile: "main",
refFrames: 1,
width: 1920,
displayTitle: "1080p (HEVC Main)",
extendedDisplayTitle: "1080p (HEVC Main)",
},
],
},
],
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id |
number | ➖ | N/A | 80994 |
duration |
number | ➖ | N/A | 420080 |
bitrate |
number | ➖ | N/A | 1046 |
width |
number | ➖ | N/A | 1920 |
height |
number | ➖ | N/A | 1080 |
aspectRatio |
number | ➖ | N/A | 1.78 |
audioChannels |
number | ➖ | N/A | 2 |
audioCodec |
string | ➖ | N/A | aac |
videoCodec |
string | ➖ | N/A | hevc |
videoResolution |
string | ➖ | N/A | 1080 |
container |
string | ➖ | N/A | mkv |
videoFrameRate |
string | ➖ | N/A | PAL |
audioProfile |
string | ➖ | N/A | lc |
videoProfile |
string | ➖ | N/A | main |
part |
models.GetOnDeckPart[] | ➖ | N/A |