# GetLibraryItemsMedia ## Example Usage ```typescript import { GetLibraryItemsHasThumbnail, GetLibraryItemsMedia } from "@lukehagar/plexjs/sdk/models/operations"; let value: GetLibraryItemsMedia = { id: 387322, duration: 9610350, bitrate: 25512, width: 3840, height: 1602, aspectRatio: 2.35, audioChannels: 6, displayOffset: 50, audioCodec: "aac", videoCodec: "hevc", videoResolution: "4k", container: "mp4", videoFrameRate: "24p", videoProfile: "main 10", hasVoiceActivity: false, audioProfile: "dts", has64bitOffsets: false, part: [ { accessible: true, exists: true, id: 418385, key: "/library/parts/418385/1735864239/file.mkv", indexes: "sd", duration: 9610350, file: "/mnt/Movies_1/W/Wicked (2024).mkv", size: 30649952104, packetLength: 188, container: "mkv", videoProfile: "main 10", audioProfile: "dts", has64bitOffsets: false, hasThumbnail: GetLibraryItemsHasThumbnail.True, }, ], }; ``` ## Fields | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *number* | :heavy_check_mark: | Unique media identifier. | 387322 | | `duration` | *number* | :heavy_minus_sign: | Duration of the media in milliseconds. | 9610350 | | `bitrate` | *number* | :heavy_minus_sign: | Bitrate in bits per second. | 25512 | | `width` | *number* | :heavy_minus_sign: | Video width in pixels. | 3840 | | `height` | *number* | :heavy_minus_sign: | Video height in pixels. | 1602 | | `aspectRatio` | *number* | :heavy_minus_sign: | Aspect ratio of the video. | 2.35 | | `audioChannels` | *number* | :heavy_minus_sign: | Number of audio channels. | 6 | | `displayOffset` | *number* | :heavy_minus_sign: | N/A | 50 | | `audioCodec` | *string* | :heavy_minus_sign: | Audio codec used. | aac | | `videoCodec` | *string* | :heavy_minus_sign: | Video codec used. | hevc | | `videoResolution` | *string* | :heavy_minus_sign: | Video resolution (e.g., 4k). | 4k | | `container` | *string* | :heavy_minus_sign: | Container format of the media. | mp4 | | `videoFrameRate` | *string* | :heavy_minus_sign: | Frame rate of the video. Values found include NTSC, PAL, 24p
| 24p | | `videoProfile` | *string* | :heavy_minus_sign: | Video profile (e.g., main 10). | main 10 | | `hasVoiceActivity` | *boolean* | :heavy_minus_sign: | Indicates whether voice activity is detected. | false | | `audioProfile` | *string* | :heavy_minus_sign: | The audio profile used for the media (e.g., DTS, Dolby Digital, etc.). | dts | | `optimizedForStreaming` | *operations.GetLibraryItemsOptimizedForStreaming* | :heavy_minus_sign: | Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true | | | `has64bitOffsets` | *boolean* | :heavy_minus_sign: | Indicates whether the media has 64-bit offsets.
This is relevant for media files that may require larger offsets than what 32-bit integers can provide.
| false | | `part` | [operations.GetLibraryItemsPart](../../../sdk/models/operations/getlibraryitemspart.md)[] | :heavy_minus_sign: | N/A | |