Platforms to show: All Mac Windows Linux Cross-Platform
Back to AVFoundationMBS class.
AVFoundationMBS.AssetLoadValuesAsynchronouslyForKeysFinished(MetadataItem as AVMetadataItemMBS, keys() as string, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Tag is the value you passed when calling the original method.
Some examples using this event:
AVFoundationMBS.AssetTrackLoadValuesAsynchronouslyForKeysFinished(MetadataItem as AVMetadataItemMBS, keys() as string, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Tag is the value you passed when calling the original method.
AVFoundationMBS.audioPlayerDecodeErrorDidOccur(player as AVAudioPlayerMBS, error as NSErrorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
player: The audio player that encountered the decoding error.
error: The decoding error.
AVFoundationMBS.audioPlayerDidFinishPlaying(player as AVAudioPlayerMBS, successful as boolean)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
player: The audio player that finished playing.
flag: True on successful completion of playback; false if playback stopped because the system could not decode the audio data.
This method is not called upon an audio interruption. Rather, an audio player is paused upon interruption—the sound has not finished playing.
Some examples using this event:
AVFoundationMBS.audioRecorderDidFinishRecording(recorder as AVAudioRecorderMBS, successful as boolean)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
recorder: The audio recorder that has finished recording.
flag: True on successful completion of recording; False if recording stopped because of an audio encoding error.
This method is not called by the system if the audio recorder stopped due to an interruption.
Some examples using this event:
AVFoundationMBS.audioRecorderEncodeErrorDidOccur(recorder as AVAudioRecorderMBS, error as NSErrorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
recorder: The audio recorder that encountered the encoding error.
error: The encoding error.
Some examples using this event:
AVFoundationMBS.BoundaryTimeObserver(Player as AVPlayerMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Tag is the value you passed when calling the original method.
AVFoundationMBS.determineCompatibilityOfExportPresetCompleted(presetName as string, asset as AVAssetMBS, outputFileType as string, compatible as boolean, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 14.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The event to execute with the results of your call to determineCompatibilityOfExportPreset.
The compatible parameter contains the value true if the combination of options is compatible or false if they are not.
Tag is the value you passed when calling the original method.
AVFoundationMBS.determineCompatibleFileTypesCompleted(exportsession as AVAssetExportSessionMBS, compatibleFileTypes() as string, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 14.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The event to execute with the results.
You receive an array parameter and returns no result. The array contains zero or more strings with the UTIs of the compatible file types. The file types are in no particular order. For a list of constants specifying UTIs for standard file types, see AV Foundation Constants Reference.
Tag is the value you passed when calling the original method.
AVFoundationMBS.exportAsynchronouslyCompleted(ExportSession as AVAssetExportSessionMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Called by AVAssetExportSessionMBS.exportAsynchronously when the export is done or failed.
Tag is the value you passed when calling the original method.
AVFoundationMBS.finishWritingCompleted(writer as AVAssetWriterMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 14.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The event is invoked once the writing of the output file is finished or if a failure or cancellation occurs in the meantime.
Tag is the value you passed when calling the original method.
AVFoundationMBS.generateCGImagesAsynchronouslyForTimesCompleted(generator as AVAssetImageGeneratorMBS, requestedTime as CMTimeMBS, image as Variant, actualTime as CMTimeMBS, result as Integer, error as NSErrorMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Image is a CGImageMBS object.
Called by AVAssetImageGeneratorMBS.generateCGImagesAsynchronouslyForTimes method.
Tag is the value you passed when calling the original method.
Some examples using this event:
AVFoundationMBS.legibleOutputDidOutputAttributedStrings(output as AVPlayerItemLegibleOutputMBS, strings() as Variant, nativeSamples() as CMSampleBufferMBS, itemTime as CMTimeMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 14.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Strings array contains NSAttributedStringMBS objects.
AVFoundationMBS.MetadataItemLoadValuesAsynchronouslyForKeysFinished(MetadataItem as AVMetadataItemMBS, keys() as string, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Tag is the value you passed when calling the original method.
AVFoundationMBS.outputMediaDataWillChange(output as AVPlayerItemOutputMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
You can use this method to prepare for any new sample data. This method is called at some point after a call to your video output object's requestNotificationOfMediaDataChangeWithAdvanceInterval method.
AVFoundationMBS.outputSequenceWasFlushed(output as AVPlayerItemOutputMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
output: The output object that sent the message.
This method is called after any attempt to seek or change the playback direction of the item's content. If you are maintaining any queued future samples, you can use your implementation of this method to discard those samples.
AVFoundationMBS.requestAccessForMediaTypeCompleted(MediaType as String, granted as boolean, tag as variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 18.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Some examples using this event:
AVFoundationMBS.requestContentAuthorizationCompleted(PlayerItem as AVPlayerItemMBS, timeoutInterval as Double, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Tag is the value you passed when calling the original method.
AVFoundationMBS.requestMediaDataWhenReadyOnQueueCompleted(assetWriterInput as AVAssetWriterInputMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
You called requestMediaDataWhenReadyOnQueue on an AVAssetWriterInputMBS before.
Tag is the value you passed when calling the original method.
AVFoundationMBS.requestMediaDataWhenReadyOnQueueFinished(assetWriterInput as AVAssetWriterInputMBS, assetReaderOutput as AVAssetReaderOutputMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Tag is the value you passed when calling the original method.
Some examples using this event:
AVFoundationMBS.requestMediaDataWhenReadyOnQueueProgress(assetWriterInput as AVAssetWriterInputMBS, assetReaderOutput as AVAssetReaderOutputMBS, convertedByteCount as Int64, LastBuffer as CMSampleBufferMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
LastBuffer: The last buffer processed.
Tag is the value you passed when calling the original method.
Some examples using this event:
AVFoundationMBS.resourceLoaderDidCancelLoadingRequest(resourceLoader as AVAssetResourceLoaderMBS, loadingRequest as AVAssetResourceLoadingRequestMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 14.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
resourceLoader: The resource loader.
loadingRequest: The loading request that has been cancelled.
Previously issued loading requests can be cancelled when data from the resource is no longer required or when a loading request is superseded by new requests for data from the same resource.
For example, if to complete a seek operation it becomes necessary to load a range of bytes that's different from a range previously requested, the prior request may be cancelled while the delegate is still handling it.
Available in OS X v10.9 and later.
AVFoundationMBS.resourceLoaderShouldWaitForLoadingOfRequestedResource(resourceLoader as AVAssetResourceLoaderMBS, loadingRequest as AVAssetResourceLoadingRequestMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 14.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
resourceLoader: The resource loader object that is making the request.
loadingRequest: The loading request object that contains information about the requested resource.
Returns true if your delegate can load the resource specified by the loadingRequest parameter or false if it cannot.
The resource loader object calls this method when assistance is required of your code to load the specified resource. For example, the resource loader might call this method to load decryption keys that have been specified using a custom URL scheme.
Returning true from this method, implies only that the receiver will load, or at least attempt to load, the resource. In some implementations, the actual work of loading the resource might be initiated on another thread, running asynchronously to the resource loading delegate; whether the work begins immediately or merely soon is an implementation detail of the client application.
You can load the resource synchronously or asynchronously. In both cases, you must indicate success or failure of the operation by calling the finishLoadingWithResponse or finishLoadingWithError: method of the request object when you finish. If you load the resource asynchronously, you must also store a strong reference to the object in the loadingRequest parameter before returning from this method.
If you return false from this method, the resource loader treats the loading of the resource as having failed.
Available in OS X v10.9 and later.
AVFoundationMBS.SampleBufferDisplayLayerMediaDataWhenReady(tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Tag is the value you passed when calling the original method.
AVFoundationMBS.videoCompositionShouldContinueValidatingAfterFindingEmptyTimeRange(videoComposition as AVVideoCompositionMBS, timeRange as CMTimeRangeMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
videoComposition: The video composition being validated.
timeRange: The time range that has no corresponding video composition instruction.
Return true if the video composition should continue validation in order to report additional problems that may exist, otherwise false.
AVFoundationMBS.videoCompositionShouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction(videoComposition as AVVideoCompositionMBS, Instruction as AVVideoCompositionInstructionMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
videoComposition: The video composition being validated.
videoCompositionInstruction: The video composition instruction.
Return true if the video composition should continue validation in order to report additional problems that may exist, otherwise false.
AVFoundationMBS.videoCompositionShouldContinueValidatingAfterFindingInvalidTrackIDInInstruction(videoComposition as AVVideoCompositionMBS, videoCompositionInstruction as AVVideoCompositionInstructionMBS, layerInstruction as AVVideoCompositionLayerInstructionMBS, asset as AVAssetMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
videoComposition: The video composition being validated.
videoCompositionInstruction: The video composition instruction.
layerInstruction: The layer instruction.
asset: The underlying asset.
Return true if the video composition should continue validation in order to report additional problems that may exist, otherwise false.
AVFoundationMBS.videoCompositionShouldContinueValidatingAfterFindingInvalidValueForKey(videoComposition as AVVideoCompositionMBS, key as string) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
videoComposition: The video composition being validated.
key: The key being validated.
Return true if the video composition should continue validation in order to report additional problems that may exist, otherwise false.
AVFoundationMBS.WriteCGImageToFileCompleted(file as folderitem, type as string, image as Variant, options as dictionary, success as boolean, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 14.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Image is a CGImageMBS.
Success property tells you whether or not the write was successful.
Tag is the value you passed when calling the original method.
The items on this page are in the following plugins: MBS AVFoundation Plugin.