mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
7.0 KiB
7.0 KiB
GetLibraryHubsMedia
Example Usage
import { GetLibraryHubsMedia } from "@lukehagar/plexjs";
let value: GetLibraryHubsMedia = {
id: 38247,
duration: 6017237,
bitrate: 2051,
width: 1920,
height: 1080,
aspectRatio: 1.78,
audioChannels: 2,
audioCodec: "aac",
videoCodec: "h264",
videoResolution: "1080",
container: "mp4",
videoFrameRate: "24p",
optimizedForStreaming: 1,
audioProfile: "lc",
has64bitOffsets: false,
videoProfile: "high",
part: [
{
id: 38247,
key: "/library/parts/38247/1589412494/file.mp4",
duration: 6017237,
file: "/movies/Tangled (2010)/Tangled (2010) Bluray-1080p.mp4",
size: 1545647447,
audioProfile: "lc",
container: "mp4",
has64bitOffsets: false,
optimizedForStreaming: true,
videoProfile: "high",
},
],
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id |
number | ➖ | N/A | 38247 |
duration |
number | ➖ | N/A | 6017237 |
bitrate |
number | ➖ | N/A | 2051 |
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 | h264 |
videoResolution |
string | ➖ | N/A | 1080 |
container |
string | ➖ | N/A | mp4 |
videoFrameRate |
string | ➖ | N/A | 24p |
optimizedForStreaming |
number | ➖ | N/A | 1 |
audioProfile |
string | ➖ | N/A | lc |
has64bitOffsets |
boolean | ➖ | N/A | false |
videoProfile |
string | ➖ | N/A | high |
part |
models.GetLibraryHubsPart[] | ➖ | N/A |