Plex_Server_Library_Item_Media
class Plex_Server_Library_Item_Media implements Plex_Server_Library_Item_MediaInterface
Class that represents the media info a Plex Server Library Item.
Methods
Sets an array of media info to their corresponding class members.
Returns the ID of the media info.
Sets the ID of the media info.
Returns the length of the file.
Sets the length of the file.
Returns the bitrate of the file.
Sets the bitrate of the file.
Returns the width of the file's video.
Sets the width of the file's video.
Returns the height of the file's video.
Sets the height of the file's video.
Returns the aspect ratio of the file's video.
Sets the aspect ratio of the file's video.
Returns the video resolution of the file's video.
Sets the video resolution of the file's video.
Returns the container of the file.
Sets the container of the file.
Returns the frame rate of the file's video
Sets the frame rate of the file's video
Returns the files associated with the item.
Details
at line 125
void
__construct(array $rawMedia)
Sets an array of media info to their corresponding class members.
at line 172
integer
getId()
Returns the ID of the media info.
at line 186
void
setId(integer $id)
Sets the ID of the media info.
at line 198
integer
getDuration()
Returns the length of the file.
at line 212
void
setDuration(integer $duration)
Sets the length of the file.
at line 224
integer
getBitrate()
Returns the bitrate of the file.
at line 238
void
setBitrate(integer $bitrate)
Sets the bitrate of the file.
at line 250
integer
getWidth()
Returns the width of the file's video.
at line 264
void
setWidth(integer $width)
Sets the width of the file's video.
at line 276
integer
getHeight()
Returns the height of the file's video.
at line 290
void
setHeight(integer $height)
Sets the height of the file's video.
at line 302
float
getAspectRatio()
Returns the aspect ratio of the file's video.
at line 316
void
setAspectRatio(float $aspectRatio)
Sets the aspect ratio of the file's video.
at line 328
integer
getVideoResolution()
Returns the video resolution of the file's video.
at line 342
void
setVideoResolution(integer $videoResolution)
Sets the video resolution of the file's video.
at line 354
string
getContainer()
Returns the container of the file.
at line 368
void
setContainer(string $container)
Sets the container of the file.
at line 380
string
getVideoFrameRate()
Returns the frame rate of the file's video
at line 394
void
setVideoFrameRate(string $videoFrameRate)
Sets the frame rate of the file's video
at line 406
Plex_Server_Library_Item_Media_File[]
getFiles()
Returns the files associated with the item.
at line 420
void
setFiles(Plex_Server_Library_Item_Media_File[] $files)
Sets the files associated with the item.