User Tools

Site Tools


getmedialist

This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== GetMediaList ====== The ''GetMediaList'' function returns a list of media items for the given camera. If ''forceReload'' is true then the media list is loaded from the camera, else a possible locally cached media list is returned. If no local cached media list is available then the list is loaded from the camera. ==== Media list item ==== A media list item has the following fields: * ''mediakey'': A unique key identifying the media item. This key must be used for all media related operations. * ''filename'': The filename of the media item. * ''filesize'': The file size of the media item in bytes. * ''datecreated'': The creation date of the media item with the format "yyyy-MM-dd hh:mm:ss". ==== Syntax ==== <code> array: GetMediaList(string cameraName[, bool forceReload=true]) </code> ==== Examples ==== <code> var result = GetMediaList("GoPro Hero 4"); // returns a list with all media items. // False is returned if the given camera is not connected // or if loading of the media list fails. </code> Accessing a media item: <code> var result = GetMediaList("GoPro Hero 4"); LogText("Media item size: " + result.filesize); </code>

getmedialist.1473142619.txt.gz · Last modified: 2016/09/06 08:16 by act