# 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`                                               | *bool*                                                  | :heavy_minus_sign:                                      | Indicates if this is the default stream                 | true                                                    |
| `Selected`                                              | *bool*                                                  | :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`                                               | *long*                                                  | :heavy_minus_sign:                                      | The bitrate of the stream in kbps                       | 6273                                                    |
| `ColorPrimaries`                                        | *string*                                                | :heavy_minus_sign:                                      | The color primaries of the video stream                 | bt709                                                   |
| `ColorRange`                                            | *string*                                                | :heavy_minus_sign:                                      | The color range of the video stream                     | tv                                                      |
| `ColorSpace`                                            | *string*                                                | :heavy_minus_sign:                                      | The color space of the video stream                     | bt709                                                   |
| `ColorTrc`                                              | *string*                                                | :heavy_minus_sign:                                      | The transfer characteristics (TRC) of the video stream  | bt709                                                   |
| `BitDepth`                                              | *long*                                                  | :heavy_minus_sign:                                      | The bit depth of the video stream                       | 8                                                       |
| `ChromaLocation`                                        | *string*                                                | :heavy_minus_sign:                                      | The chroma location of the video stream                 | left                                                    |
| `StreamIdentifier`                                      | *string*                                                | :heavy_minus_sign:                                      | The identifier of the video stream                      | 2                                                       |
| `ChromaSubsampling`                                     | *string*                                                | :heavy_minus_sign:                                      | The chroma subsampling format                           | 4:2:0                                                   |
| `CodedHeight`                                           | *long*                                                  | :heavy_minus_sign:                                      | The coded height of the video stream                    | 1088                                                    |
| `CodedWidth`                                            | *long*                                                  | :heavy_minus_sign:                                      | The coded width of the video stream                     | 1920                                                    |
| `FrameRate`                                             | *double*                                                | :heavy_minus_sign:                                      | The frame rate of the video stream                      | 29.97                                                   |
| `HasScalingMatrix`                                      | *bool*                                                  | :heavy_minus_sign:                                      | Indicates if the stream has a scaling matrix            | false                                                   |
| `HearingImpaired`                                       | *bool*                                                  | :heavy_minus_sign:                                      | N/A                                                     | false                                                   |
| `ClosedCaptions`                                        | *bool*                                                  | :heavy_minus_sign:                                      | N/A                                                     | false                                                   |
| `EmbeddedInVideo`                                       | *string*                                                | :heavy_minus_sign:                                      | N/A                                                     | 1                                                       |
| `Height`                                                | *long*                                                  | :heavy_minus_sign:                                      | The height of the video stream                          | 1080                                                    |
| `Level`                                                 | *long*                                                  | :heavy_minus_sign:                                      | The level of the video codec                            | 40                                                      |
| `Profile`                                               | *string*                                                | :heavy_minus_sign:                                      | The profile of the video codec                          | main                                                    |
| `RefFrames`                                             | *long*                                                  | :heavy_minus_sign:                                      | Number of reference frames                              | 4                                                       |
| `ScanType`                                              | *string*                                                | :heavy_minus_sign:                                      | The scan type (progressive or interlaced)               | progressive                                             |
| `Width`                                                 | *long*                                                  | :heavy_minus_sign:                                      | The width of the video stream                           | 1920                                                    |
| `DisplayTitle`                                          | *string*                                                | :heavy_minus_sign:                                      | Display title of the stream                             | 1080p (H.264)                                           |
| `ExtendedDisplayTitle`                                  | *string*                                                | :heavy_minus_sign:                                      | Extended display title of the stream                    | 1080p (H.264)                                           |
| `Channels`                                              | *long*                                                  | :heavy_minus_sign:                                      | Number of audio channels (for audio streams)            | 2                                                       |
| `Language`                                              | *string*                                                | :heavy_minus_sign:                                      | The language of the stream (for audio/subtitle streams) | English                                                 |
| `LanguageTag`                                           | *string*                                                | :heavy_minus_sign:                                      | Language tag of the stream                              | en                                                      |
| `LanguageCode`                                          | *string*                                                | :heavy_minus_sign:                                      | Language code of the stream                             | eng                                                     |
| `AudioChannelLayout`                                    | *string*                                                | :heavy_minus_sign:                                      | The audio channel layout                                | stereo                                                  |
| `SamplingRate`                                          | *long*                                                  | :heavy_minus_sign:                                      | Sampling rate of the audio stream in Hz                 | 48000                                                   |
| `Title`                                                 | *string*                                                | :heavy_minus_sign:                                      | Title of the subtitle track (for subtitle streams)      | English                                                 |
| `CanAutoSync`                                           | *bool*                                                  | :heavy_minus_sign:                                      | Indicates if the subtitle stream can auto-sync          | false                                                   |