# GetLibraryItemsStream


## Fields

| Field                                                   | Type                                                    | Required                                                | Description                                             | Example                                                 |
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
| `id`                                                    | *long*                                                  | :heavy_check_mark:                                      | N/A                                                     | 272796                                                  |
| `streamType`                                            | *long*                                                  | :heavy_check_mark:                                      | Type of stream (1 = video, 2 = audio, 3 = subtitle)     | 1                                                       |
| `default_`                                              | *Optional<Boolean>*                                     | :heavy_minus_sign:                                      | Indicates if this is the default stream                 | true                                                    |
| `selected`                                              | *Optional<Boolean>*                                     | :heavy_minus_sign:                                      | Indicates if the stream is selected                     | true                                                    |
| `codec`                                                 | *String*                                                | :heavy_check_mark:                                      | Codec used by the stream                                | h264                                                    |
| `index`                                                 | *long*                                                  | :heavy_check_mark:                                      | The index of the stream                                 | 0                                                       |
| `bitrate`                                               | *Optional<Long>*                                        | :heavy_minus_sign:                                      | The bitrate of the stream in kbps                       | 6273                                                    |
| `colorPrimaries`                                        | *Optional<String>*                                      | :heavy_minus_sign:                                      | The color primaries of the video stream                 | bt709                                                   |
| `colorRange`                                            | *Optional<String>*                                      | :heavy_minus_sign:                                      | The color range of the video stream                     | tv                                                      |
| `colorSpace`                                            | *Optional<String>*                                      | :heavy_minus_sign:                                      | The color space of the video stream                     | bt709                                                   |
| `colorTrc`                                              | *Optional<String>*                                      | :heavy_minus_sign:                                      | The transfer characteristics (TRC) of the video stream  | bt709                                                   |
| `bitDepth`                                              | *Optional<Long>*                                        | :heavy_minus_sign:                                      | The bit depth of the video stream                       | 8                                                       |
| `chromaLocation`                                        | *Optional<String>*                                      | :heavy_minus_sign:                                      | The chroma location of the video stream                 | left                                                    |
| `streamIdentifier`                                      | *Optional<String>*                                      | :heavy_minus_sign:                                      | The identifier of the video stream                      | 2                                                       |
| `chromaSubsampling`                                     | *Optional<String>*                                      | :heavy_minus_sign:                                      | The chroma subsampling format                           | 4:2:0                                                   |
| `codedHeight`                                           | *Optional<Long>*                                        | :heavy_minus_sign:                                      | The coded height of the video stream                    | 1088                                                    |
| `codedWidth`                                            | *Optional<Long>*                                        | :heavy_minus_sign:                                      | The coded width of the video stream                     | 1920                                                    |
| `frameRate`                                             | *Optional<Double>*                                      | :heavy_minus_sign:                                      | The frame rate of the video stream                      | 29.97                                                   |
| `hasScalingMatrix`                                      | *Optional<Boolean>*                                     | :heavy_minus_sign:                                      | Indicates if the stream has a scaling matrix            | false                                                   |
| `hearingImpaired`                                       | *Optional<Boolean>*                                     | :heavy_minus_sign:                                      | N/A                                                     | false                                                   |
| `closedCaptions`                                        | *Optional<Boolean>*                                     | :heavy_minus_sign:                                      | N/A                                                     | false                                                   |
| `embeddedInVideo`                                       | *Optional<String>*                                      | :heavy_minus_sign:                                      | N/A                                                     | 1                                                       |
| `height`                                                | *Optional<Long>*                                        | :heavy_minus_sign:                                      | The height of the video stream                          | 1080                                                    |
| `level`                                                 | *Optional<Long>*                                        | :heavy_minus_sign:                                      | The level of the video codec                            | 40                                                      |
| `profile`                                               | *Optional<String>*                                      | :heavy_minus_sign:                                      | The profile of the video codec                          | main                                                    |
| `refFrames`                                             | *Optional<Long>*                                        | :heavy_minus_sign:                                      | Number of reference frames                              | 4                                                       |
| `scanType`                                              | *Optional<String>*                                      | :heavy_minus_sign:                                      | The scan type (progressive or interlaced)               | progressive                                             |
| `width`                                                 | *Optional<Long>*                                        | :heavy_minus_sign:                                      | The width of the video stream                           | 1920                                                    |
| `displayTitle`                                          | *Optional<String>*                                      | :heavy_minus_sign:                                      | Display title of the stream                             | 1080p (H.264)                                           |
| `extendedDisplayTitle`                                  | *Optional<String>*                                      | :heavy_minus_sign:                                      | Extended display title of the stream                    | 1080p (H.264)                                           |
| `channels`                                              | *Optional<Long>*                                        | :heavy_minus_sign:                                      | Number of audio channels (for audio streams)            | 2                                                       |
| `language`                                              | *Optional<String>*                                      | :heavy_minus_sign:                                      | The language of the stream (for audio/subtitle streams) | English                                                 |
| `languageTag`                                           | *Optional<String>*                                      | :heavy_minus_sign:                                      | Language tag of the stream                              | en                                                      |
| `languageCode`                                          | *Optional<String>*                                      | :heavy_minus_sign:                                      | Language code of the stream                             | eng                                                     |
| `audioChannelLayout`                                    | *Optional<String>*                                      | :heavy_minus_sign:                                      | The audio channel layout                                | stereo                                                  |
| `samplingRate`                                          | *Optional<Long>*                                        | :heavy_minus_sign:                                      | Sampling rate of the audio stream in Hz                 | 48000                                                   |
| `title`                                                 | *Optional<String>*                                      | :heavy_minus_sign:                                      | Title of the subtitle track (for subtitle streams)      | English                                                 |
| `canAutoSync`                                           | *Optional<Boolean>*                                     | :heavy_minus_sign:                                      | Indicates if the subtitle stream can auto-sync          | false                                                   |