Skip to main content

mergAV

Type

library

Description

mergAV is an iOS and OS X 10.6+ external that adds functions and commands related to the AVFoundation framework. This currently includes using the standard iOS modal dialogs to pick, record, save and edit video and displaying a video preview control to record video and capture still images.

Associated Syntax

Function

NameSummarySyntax
mergAVPickPicks a video from a recording or the library and saves it in the temporary folder and returns the file path mergAVPick([<pSource>], [<pQuality>], [<pDuration>], [<pIncludeVideo>], [<pIncludePhoto>], [<pPopoverRect>], [<pOriginalImage>])
mergAVEditVideoEdits the video and saves the result in the temporary folder and returns the file path mergAVEditVideo(<pFilePath>, [<pQuality>], [<pDuration>])
mergAVCanSaveVideoChecks to see if the video file is compatible with the photo librarymergAVCanSaveVideo(<pFilePath>)
mergAVCanAccessPhotoLibraryChecks the authorisation status of the app to access the photo librarymergAVCanAccessPhotoLibrary()
mergAVCanRecordChecks if the user has authorised the app to record audio or videomergAVCanRecord([<pType>])
mergAVVideoThumbnailCreate a thumbnail image of a videomergAVVideoThumbnail(<pFilePath>, [<pSize>], [<pTime>])
mergAVImageThumbnailCreate a thumbnail image from an image filemergAVImageThumbnail(<pFilePath>, [<pSize>])
mergAVCamGetGet the current property of the camera controlmergAVCamGet(<pProp>)
mergAVCamBarcodeTypesGet a list of possible barcode typesmergAVCamBarcodeTypes()
mergAVAssetCreateCreate an asset from a URLmergAVAssetCreate(<pURL>)
mergAVAssetGetGet the value of an asset propertymergAVAssetGet(<pAssetPointer>, <pProp>)
mergAVAssetTrackGetGet the value of an asset track propertymergAVAssetTrackGet(<pAssetPointer>, <pAssetTrackID>, <pProp>)
mergAVCompositionCreateCreate a compositionmergAVCompositionCreate()
mergAVCompositionTrackCompatibleWithAssetTrackGet the id of a composition track that is compatible with a specified asset track mergAVCompositionTrackCompatibleWithAssetTrack(<pCompositionPointer>, <pAssetPointer>, <pAssetTrackID>)
mergAVCompositionTrackCreateCreates a composition tract in a compositionmergAVCompositionTrackCreate(<pCompositionPointer>, <pMediaType>)
mergAVVideoCompositionCreateCreate a video compositionmergAVVideoCompositionCreate()
mergAVAssetExportSessionCreateCreate an asset export session to write a composition to a filemergAVAssetExportSessionCreate(<pAssetPointer>, <pPreset>)
mergAVAssetExportSessionCompatiblePresetsGet a list of asset export session presets that are compatible with an asset mergAVAssetExportSessionCompatiblePresets(<pAssetPointer>)
mergAVAssetExportSessionPresetsGet a list of asset export session presetsmergAVAssetExportSessionPresets()
mergAVAssetExportSessionGetmergAVAssetExportSessionGet(<pAssetExportSessionPointer>, <pProp>)
mergAVAffineTransformIdentityThis will return the affine transform that makes no changes to the image mergAVAffineTransformIdentity()
mergAVAffineTransformMakeRotationThis will return the affine transform identity rotated by pAnglemergAVAffineTransformMakeRotation(<pAngle>)
mergAVAffineTransformMakeScaleThis will return the affine transform identity scaled by pScaleX and pScaleY mergAVAffineTransformMakeScale(<pScaleX>, <pScaleY>)
mergAVAffineTransformMakeTranslationThis will return the affine transform identity moved by pTranslateX and pTranslateY mergAVAffineTransformMakeTranslation(<pTranslateX>, <pTranslateY>)
mergAVAffineTransformConcatConcatenate two affine transformsmergAVAffineTransformConcat(<pTransform1>, <pTransform2>)
mergAVAffineTransformInvertInvert an affine transformmergAVAffineTransformInvert(<pTransform>)
mergAVAffineTransformRotateThis will return the affine transform rotated by pAnglemergAVAffineTransformRotate(<pTransform>, <pAngle>)
mergAVAffineTransformScaleThis will return the affine transform scaled by pScaleX and pScaleYmergAVAffineTransformScale(<pTransform>, <pScaleX>, <pScaleY>)
mergAVAffineTransformTranslateThis will return the affine transform moved by pTranslateX and pTranslateY mergAVAffineTransformTranslate(<pTransform>, <pTranslateX>, <pTranslateY>)
mergAVAffineTransformRectThis will apply the affine transform to a rect and return the resultmergAVAffineTransformRect(<pTransform>, <pRect>)
mergAVAffineTransformSizeThis will apply the affine transform to a size and return the resultmergAVAffineTransformSize(<pTransform>, <pSize>)
mergAVAffineTransformPointThis will apply the affine transform to a point and return the resultmergAVAffineTransformPoint(<pTransform>, <pPoint>)
mergAVPlayerCreateCreate a player control from an asset or composition with an optional video composition mergAVPlayerCreate(<pAssetPointer>, [<pVideoCompositionPointer>])
mergAVPlayerCreateFromURLCreate a player control from a urlmergAVPlayerCreateFromURL(<pURL>)
mergAVPlayerGetGet a player propertymergAVPlayerGet(<pPlayerPointer>, <pProperty>)
mergAVPlayerCreatePeriodicTimeObserverObserver periodic times while a player is playing and send a custom message to the contol that created the player mergAVPlayerCreatePeriodicTimeObserver(<pPlayerPointer>, <pTime>, <pCallback>)
mergAVPlayerCreateBoundaryTimeObserverObserver boundary times while a player is playing and send a custom message to the contol that created the player mergAVPlayerCreateBoundaryTimeObserver(<pPlayerPointer>, <pTimes>, <pCallback>)
mergAVAudioSessionOtherAudioIsPlayingWhen a user launches your app, sound may already be playing on the device mergAVAudioSessionOtherAudioIsPlaying()

Command

NameSummarySyntax
mergAVRequestMediaAccessRequest access for the media type from the usermergAVRequestMediaAccess [<pType>]
mergAVSaveVideoSaves video file to the librarymergAVSaveVideo <pFilePath>
mergAVSaveImageSaves image file to the library including metadatamergAVSaveImage <pFilePath>
mergAVCamCreateCreate the camera controlmergAVCamCreate
mergAVCamDeleteDelete the camera controlmergAVCamDelete
mergAVCamSetSet a property of the camera controlmergAVCamSet <pProp>, <pValue>
mergAVCamCaptureImageCapture an image from the camera controlmergAVCamCaptureImage [<pAnimate>], [<pJPEGQuality>], [<pFilePath>], [<pThumbnailSize>]
mergAVCamStartRecordingStart recording a videomergAVCamStartRecording <pFilePath>
mergAVCamStopRecordingStop recording a videomergAVCamStopRecording
mergAVCamStartBarcodeReaderStart detecting barcodesmergAVCamStartBarcodeReader [<pBarcodeTypes>]
mergAVCamStopBarcodeReaderStop detecting barcodesmergAVCamStopBarcodeReader
mergAVAssetReleaseRelease the asset from memorymergAVAssetRelease <pAssetPointer>
mergAVCompositionReleaseRelease a composition from memorymergAVCompositionRelease <pCompositionPointer>
mergAVCompositionInsertAssetInsert all tracks from an asset time range into a composition at a specified time mergAVCompositionInsertAsset <pCompositionPointer>, <pAssetPointer>, <pStart>, <pDuration>, <pTime>
mergAVCompositionInsertEmptyTimeRangeInsert an empty time range into all tracks of a compositionmergAVCompositionInsertEmptyTimeRange <pCompositionPointer>, <pStart>, <pDuration>
mergAVCompositionScaleTimeRangeScale time range into all tracks of a compositionmergAVCompositionScaleTimeRange <pCompositionPointer>, <pStart>, <pCurrentDuration>, <pNewDuration>
mergAVCompositionTrackInsertAssetTrackInsert a time range of an asset track into a composition track at a specified time mergAVCompositionTrackInsertAssetTrack <pCompositionPointer>, <pCompositionTrackID>, <pAssetPointer>, <pAssetTrackID>, <pStart>, <pDuration>, <pTime>
mergAVCompositionTrackInsertEmptyTimeRangeInsert an empty time range into a track of a compositionmergAVCompositionTrackInsertEmptyTimeRange <pCompositionPointer>, <pCompositionTrackID>, <pStart>, <pDuration>
mergAVCompositionTrackScaleTimeRangeScale time range into a track of a compositionmergAVCompositionTrackScaleTimeRange <pCompositionPointer>, <pCompositionTrackID>, <pStart>, <pCurrentDuration>, <pNewDuration>
mergAVVideoCompositionReleaseRelease a video composition from memorymergAVVideoCompositionRelease <pVideoCompositionPointer>
mergAVVideoCompositionSetmergAVVideoCompositionSet <pVideoCompositionPointer>, <pProp>, <pValue>
mergAVVideoCompositionAddInstructionAdd an instruction to a video compositionmergAVVideoCompositionAddInstruction <pVideoCompositionPointer>, <pStart>, <pDuration>
mergAVVideoCompositionAddLayerInstructionAdd a layer instruction to the last instruction added to the video composition mergAVVideoCompositionAddLayerInstruction <pVideoCompositionPointer>, <pCompositionPointer>, <pCompositionTrackID>, [<pTransform>], [<pTransformTransition>], [<pOpacity>], [<pOpacityTransition>]
mergAVAssetExportSessionReleaseRelease an asset export session from memorymergAVAssetExportSessionRelease <pAssetExportSessionPointer>
mergAVAssetExportSessionSetmergAVAssetExportSessionSet <pAssetExportSessionPointer>, <pProp>, <pValue>
mergAVAssetExportSessionExportExport the asset to a file asynchronouslymergAVAssetExportSessionExport <pAssetExportSessionPointer>, <pCompletionHandler>
mergAVAssetExportSessionCancelExportCancel an exportmergAVAssetExportSessionCancelExport <pAssetExportSessionPointer>
mergAVPlayerReleaseRelease a player from memorymergAVPlayerRelease <pPlayerPointer>
mergAVPlayerSetSet a player propertymergAVPlayerSet <pPlayerPointer>, <pProperty>, <pValue>
mergAVPlayerDoPerform a specified operation with the playermergAVPlayerDo <pPlayerPointer>, <pDo>, [<pOption1>], [<pOption2>], [<pOption3>]
mergAVPlayerReleaseTimeObserverStop observing the periodic or boundary times and release the time observer from memory mergAVPlayerReleaseTimeObserver <pPlayerPointer>, <pTimeObserverPointer>
mergAVAudioSessionSetCategorySet the audio session categorymergAVAudioSessionSetCategory <pCategory>, [<pMixWithOthers>], [<pDuckOthers>], [<pAllowBluetooth>], [<pDefaultToSpeaker>]
mergAVAudioSessionSetModeiOS5+mergAVAudioSessionSetMode <pMode>
mergAVAudioSessionSetActiveActivate/deactivate the audio sessionmergAVAudioSessionSetActive <pActive>

Message

NameSummarySyntax
mergAVMediaAccessSet to the object that called mergAVRequestMediaAccessmergAVMediaAccess <pType>, <pGranted>
mergAVCamImageCapturedSent to the control that called mergAVCaptureImagemergAVCamImageCaptured <pImage>
mergAVCamImageSavedSent to the control that called mergAVCaptureImagemergAVCamImageSaved <pFilePath>
mergAVCamRecordingFinishedSent to the control that called mergAVCaptureImage when the recording is finished mergAVCamRecordingFinished <pFilePath>
mergAVCamRecordingBeganSent to the control that called mergAVCaptureImage when the recording begins mergAVCamRecordingBegan
mergAVCamBarcodeFoundSent to the control that called mergAVCamStartBarcodeReader when a barcode is detected mergAVCamBarcodeFound <pBarcode>, <pBarcodeType>
AVPlayerItemDidPlayToEndTimeNotificationSent to the control that created the player when the player played to the end AVPlayerItemDidPlayToEndTimeNotification <pPlayerPointer>
AVPlayerItemFailedToPlayToEndTimeNotificationSent to the control that created the player when the player failed to play to the end AVPlayerItemFailedToPlayToEndTimeNotification <pPlayerPointer>
AVPlayerItemTimeJumpedNotificationSent to the control that created the player when when the item’s current time has changed discontinuously AVPlayerItemTimeJumpedNotification <pPlayerPointer>
AVPlayerItemPlaybackStalledNotificationiOS 6 onlyAVPlayerItemPlaybackStalledNotification <pPlayerPointer>
Thank you for your feedback!

Was this page helpful?