Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVFoundationMBS class.

Previous items

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 ❌ No
Invoked to inform the delegate that a prior loading request has been cancelled.

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 ❌ No
Asks the delegate if it wants to load the requested resource.

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 ❌ No
Event called by AVSampleBufferDisplayLayerMBS.requestMediaDataWhenReady when media data is ready.

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 ❌ No
Reports a time range that has no corresponding video composition instruction.

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 ❌ No
Reports a video composition instruction with a time range that is invalid, that overlaps with the time range of a prior instruction, or that contains times earlier than the time range of a prior instruction.

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 ❌ No
Reports a video composition layer instruction with a track ID that does not correspond either to the track ID used for the composition's animation tool or to a track of the asset specified in isValidForAsset.

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 ❌ No
Reports that a key that has an invalid value.

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 ❌ No
The call to WriteCGImageToFile method finished.

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.

Previous items

The items on this page are in the following plugins: MBS AVFoundation Plugin.


The biggest plugin in space...