« Back to Product

Documentation

IPS_GetMediaList

 array IPS_GetMediaList ()

Returns

An array that contains all IDs of the media objects in IP Symcon as integers. The order of the entries is not guaranteed.

Description

The function determines the IDs of all registered media objects in the media pool. The IDs are listed in an array. If no media object exists, the array is empty.

The objects of all media types are listed. To restrict the array by a media type, the function IPS_GetMediaListByType can be used.

Example

$allMediaObjects = IPS_GetMediaList();
print_r($allMediaObjects);  

/* returns e.g.:
Array
(
    [0] => 37659
    [1] => 18326
    etc. ...
*/
Any questions?