Files
plexjs/docs/models/getmetadatabyratingkeymedia.md

9.8 KiB
Raw Blame History

GetMetaDataByRatingKeyMedia

Example Usage

import { GetMetaDataByRatingKeyMedia } from "@lukehagar/plexjs";

let value: GetMetaDataByRatingKeyMedia = {
    id: 15,
    duration: 141417,
    bitrate: 2278,
    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: 141417,
            file: "/movies/Serenity (2005)/Serenity (2005).mp4",
            size: 40271948,
            audioProfile: "lc",
            container: "mp4",
            has64bitOffsets: false,
            optimizedForStreaming: false,
            videoProfile: "high",
            stream: [
                {
                    id: 29,
                    streamType: 2,
                    default: true,
                    codec: "aac",
                    index: 0,
                    bitrate: 128,
                    bitDepth: 8,
                    chromaLocation: "left",
                    chromaSubsampling: "14520",
                    codedHeight: 816,
                    codedWidth: 1920,
                    colorPrimaries: "bt709",
                    colorRange: "tv",
                    colorSpace: "bt709",
                    colorTrc: "bt709",
                    frameRate: 24,
                    hasScalingMatrix: false,
                    height: 814,
                    level: 40,
                    profile: "lc",
                    refFrames: 4,
                    scanType: "progressive",
                    streamIdentifier: "1",
                    width: 1920,
                    displayTitle: "English (AAC Stereo)",
                    extendedDisplayTitle: "English (AAC Stereo)",
                    selected: true,
                    channels: 2,
                    language: "English",
                    languageTag: "en",
                    languageCode: "eng",
                    samplingRate: 44100,
                },
            ],
        },
    ],
};

Fields

Field Type Required Description Example
id number N/A 15
duration number N/A 141417
bitrate number N/A 2278
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 models.GetMetaDataByRatingKeyPart[] N/A