User Tools

Site Tools


deletemediaitem

DeleteMediaItem

The DeleteMediaItem function deletes a media item with the given media key from the camera.

Parameters

  • mediakey: The unique media item key of the item to be deleted.
  • cameraName: The camera name of the camera on which the function should be executed. If left empty, then the first connected camera is taken.
  • waitUntilFinished: If true then the function blocks until the camera returns the function result. If false, then the function immediately returns.

Syntax

bool: DeleteMediaItem(int mediakey[, string cameraName = "", bool waitUntilFinished=true])

Examples

var result = DeleteMediaItem(1002323, "GoPro Hero 4");
// deletes the media item with the key 1002323 from the camera.
// False is returned if deletion fails, or if the key is invalid.
deletemediaitem.txt · Last modified: 2016/09/06 08:15 by act