interface Plex_Server_Library_Item_MediaInterface

Interface that defines the structure of item media info.

Methods

integer
getId()

Returns the ID of the media info.

void
setId(integer $id)

Sets the ID of the media info.

integer
getDuration()

Returns the length of the file.

void
setDuration(integer $duration)

Sets the length of the file.

integer
getBitrate()

Returns the bitrate of the file.

void
setBitrate(integer $bitrate)

Sets the bitrate of the file.

integer
getWidth()

Returns the width of the file's video.

void
setWidth(integer $width)

Sets the width of the file's video.

integer
getHeight()

Returns the height of the file's video.

void
setHeight(integer $height)

Sets the height of the file's video.

float
getAspectRatio()

Returns the aspect ratio of the file's video.

void
setAspectRatio(float $aspectRatio)

Sets the aspect ratio of the file's video.

integer
getVideoResolution()

Returns the video resolution of the file's video.

void
setVideoResolution(integer $videoResolution)

Sets the video resolution of the file's video.

string
getContainer()

Returns the container of the file.

void
setContainer(string $container)

Sets the container of the file.

string
getVideoFrameRate()

Returns the frame rate of the file's video

void
setVideoFrameRate(string $videoFrameRate)

Sets the frame rate of the file's video

getFiles()

Returns the files associated with the item.

void
setFiles(Plex_Server_Library_Item_Media_File[] $files)

Sets the files associated with the item.

Details

at line 49
integer getId()

Returns the ID of the media info.

Return Value

integer The ID of the media info.

at line 58
void setId(integer $id)

Sets the ID of the media info.

Parameters

integer $id The ID of the media info.

Return Value

void

at line 65
integer getDuration()

Returns the length of the file.

Return Value

integer The length of the file.

at line 74
void setDuration(integer $duration)

Sets the length of the file.

Parameters

integer $duration The length of the file.

Return Value

void

at line 81
integer getBitrate()

Returns the bitrate of the file.

Return Value

integer The bitrate of the file.

at line 90
void setBitrate(integer $bitrate)

Sets the bitrate of the file.

Parameters

integer $bitrate The bitrate of the file.

Return Value

void

at line 97
integer getWidth()

Returns the width of the file's video.

Return Value

integer The width of the file's video.

at line 106
void setWidth(integer $width)

Sets the width of the file's video.

Parameters

integer $width The width of the file's video.

Return Value

void

at line 113
integer getHeight()

Returns the height of the file's video.

Return Value

integer The height of the file's video.

at line 122
void setHeight(integer $height)

Sets the height of the file's video.

Parameters

integer $height The height of the file's video.

Return Value

void

at line 129
float getAspectRatio()

Returns the aspect ratio of the file's video.

Return Value

float The aspect ratio of the file's video.

at line 138
void setAspectRatio(float $aspectRatio)

Sets the aspect ratio of the file's video.

Parameters

float $aspectRatio The aspect ratio of the file's video.

Return Value

void

at line 145
integer getVideoResolution()

Returns the video resolution of the file's video.

Return Value

integer The video resolution of the file's video.

at line 154
void setVideoResolution(integer $videoResolution)

Sets the video resolution of the file's video.

Parameters

integer $videoResolution The video resolution of the file's video.

Return Value

void

at line 161
string getContainer()

Returns the container of the file.

Return Value

string The container of the file.

at line 170
void setContainer(string $container)

Sets the container of the file.

Parameters

string $container The container of the file.

Return Value

void

at line 177
string getVideoFrameRate()

Returns the frame rate of the file's video

Return Value

string The frame rate of the file's video.

at line 186
void setVideoFrameRate(string $videoFrameRate)

Sets the frame rate of the file's video

Parameters

string $videoFrameRate The frame rate of the file's video.

Return Value

void

at line 193
Plex_Server_Library_Item_Media_File[] getFiles()

Returns the files associated with the item.

Return Value

Plex_Server_Library_Item_Media_File[] Array of media files.

at line 202
void setFiles(Plex_Server_Library_Item_Media_File[] $files)

Sets the files associated with the item.

Parameters

Plex_Server_Library_Item_Media_File[] $files Array of media files.

Return Value

void