array IPS_GetMedia (integer $MediaID)
MediaID | The ID of the media object |
The following information are available as key => value pairs:
|
The command returns an array with information about media with the ID MediaID.
The previous form of the command that was used up to version 3.4 is accessible as "array IPS_GetMediaCompatibility(integer $MediaID)" since version 4.0 if the corresponding Special Switch is set.
// Since Version 4.0 print_r(IPS_GetMedia(45699)); /* returns e.g.: Array ( [MediaCRC] => E2D2C1D1 [MediaFile] => media\45699.bin [MediaID] => 45699 [MediaIsAvailable] => 1 [MediaIsCached] => [MediaSize] => 8192 [MediaType] => 0 [MediaUpdated] => 1214421546 ) */ print_r(IPS_GetMediaCompatibility(45699)); /* returns e.g.: Array ( [IsAvailable] => 1 [IsLinked] => [LastUpdate] => 1214421546 [MediaCRC] => E2D2C1D1 [MediaFile] => media\45699.bin [MediaID] => 45699 [MediaSize] => 8192 [MediaType] => 0 [SendEvent] => ) */ // Up to Version 3.4 print_r(IPS_GetMedia(45699)); /* returns e.g.: Array ( [IsAvailable] => 1 [IsLinked] => [LastUpdate] => 1214421546 [MediaCRC] => E2D2C1D1 [MediaFile] => media\45699.bin [MediaID] => 45699 [MediaSize] => 8192 [MediaType] => 0 [SendEvent] => ) */