mergAVPick

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
mergAVPick([<pSource>], [<pQuality>], [<pDuration>], [<pIncludeVideo>], [<pIncludePhoto>], [<pPopoverRect>], [<pOriginalImage>])
Associationsmergav
Summary

Picks a video from a recording or the library and saves it in the temporary folder and returns the file path

Introduced8.0
OSios, mac
Platformsdesktop, mobile
Parameters
NameTypeDescription
pSource

(optional with "camera" default) the source of the video which will be one of: - library - album - camera - rear camera - front camera

pQuality

(optional with "medium" default) the quality of the video - high : iOS 3.1+ - medium : iOS 3.1+ - low : iOS 3.1+ - 640x480 : iOS 4.0+ - 1280x720 : iOS 5.0+ - 960x540 : iOS 5.0+

pDuration

(optional with 600 default) The maximum duration of the video

pIncludeVideo

(optional with "true" default) Allow the user to pick video. - true - false

pIncludePhoto

(optional with "false" default) Allow the user to pick photo's. - true - false

pPopoverRect

(optional with "" default) The rect to display the popover from if picking an existing video or photo. If not specified the target rect will be used.

pOriginalImage

(optional with "false" default) (iOS8 only) This option is for picking images from the library where you want the original image data rather than the image that iOS normally gives us from the image picker. - true - false

Example
put mergAVPick("library","medium",180) into tVideoPath
put mergAVPick("front camera","low") into tVideoPath
Values
NameTypeDescription
return

one of:

  • mergAV:Error: source not available
  • mergAV:Error: no video recording
  • mergAV:Error: failed
  • mergAV: cancelled
  • The path to the saved video file
Description

iOS Only.

Tagsexternals