mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 04:20:52 +00:00
8.8 KiB
8.8 KiB
Media
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id |
::Integer | ✔️ | Unique media identifier. | 387322 |
duration |
T.nilable(::Integer) | ➖ | Duration of the media in milliseconds. | 9610350 |
bitrate |
T.nilable(::Integer) | ➖ | Bitrate in bits per second. | 25512 |
width |
T.nilable(::Integer) | ➖ | Video width in pixels. | 3840 |
height |
T.nilable(::Integer) | ➖ | Video height in pixels. | 1602 |
aspect_ratio |
T.nilable(::Float) | ➖ | Aspect ratio of the video. | 2.35 |
audio_channels |
T.nilable(::Integer) | ➖ | Number of audio channels. | 6 |
display_offset |
T.nilable(::Integer) | ➖ | N/A | 50 |
audio_codec |
T.nilable(::String) | ➖ | Audio codec used. | eac3 |
video_codec |
T.nilable(::String) | ➖ | Video codec used. | hevc |
video_resolution |
T.nilable(::String) | ➖ | Video resolution (e.g., 4k). | 4k |
container |
T.nilable(::String) | ➖ | File container type. | mkv |
video_frame_rate |
T.nilable(::String) | ➖ | Frame rate of the video. Values found include NTSC, PAL, 24p |
24p |
video_profile |
T.nilable(::String) | ➖ | Video profile (e.g., main 10). | main 10 |
has_voice_activity |
T.nilable(T::Boolean) | ➖ | Indicates whether voice activity is detected. | false |
audio_profile |
T.nilable(::String) | ➖ | The audio profile used for the media (e.g., DTS, Dolby Digital, etc.). | dts |
optimized_for_streaming |
T.nilable(::Object) | ➖ | Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true | |
has64bit_offsets |
T.nilable(T::Boolean) | ➖ | N/A | false |
part |
T::Array<::PlexRubySDK::Operations::Part> | ➖ | An array of parts for this media item. |