Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.5 KB

Media.md

File metadata and controls

34 lines (29 loc) · 1.5 KB

Media

This object is created for each media file

Property List

Data type Property Description
int id
Duration duration The duration of the media
int bitrate The total bitrate
int width The pixel width of the video
int height The pixel heigh of the video
float aspectRatio The aspect ratio (1.6, 1.77, 2.35, etc)
int audioChannels The number of audio channels
string audioCodec The audio codec used (mp3, aac, etc)
string videoCodec The video codec used (hvec, h264, etc)
string videoResolution The resolution (720, 1080, 4k, etc)
string videoFrameRate The frame rate
bool optomizedForStreaming
string audioProfile The audio profile info
bool has64bitOffsets
string videoProfile The video profile info
string title The title of the media
Size size The size of the file
string path The path of the file

Function List

Visibility Function (parameters,...): return
public __get(string $var): mixed
Magic getter
public __set(string $var, mixed$val): void
Magic setter
public static fromLibrary(array $lib): Media
Method to create Media object from Plex API call