Platforms to show: All Mac Windows Linux Cross-Platform
Back to AVFoundationMBS class.
AVFoundationMBS.CaptureDeviceSubjectAreaDidChange(device as AVCaptureDeviceMBS, notification as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
notification is a NSNotificationMBS object.
This notification is only sent if you first set subjectAreaChangeMonitoringEnabled to True.
AVFoundationMBS.CaptureDeviceWasConnected(device as AVCaptureDeviceMBS, notification as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
notification is a NSNotificationMBS object.
AVFoundationMBS.CaptureDeviceWasDisconnected(device as AVCaptureDeviceMBS, notification as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
notification is a NSNotificationMBS object.
AVFoundationMBS.CaptureInputPortFormatDescriptionDidChange(InputPort as AVCaptureInputPortMBS, notification as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
notification is a NSNotificationMBS object.
AVFoundationMBS.captureOutputDidDropSampleBuffer(captureOutput as AVCaptureOutputMBS, OutputSampleBuffer as CMSampleBufferMBS, connection as AVCaptureConnectionMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
captureOutput: The capture output object.
sampleBuffer: A CMSampleBuffer object containing information about the dropped frame, such as its format and presentation time. This sample buffer contains none of the original video data.
connection: The connection from which the video was received.
Delegates receive this message whenever a late video frame is dropped. This method is called once for each dropped frame. It is called on the main thread, so please make your event code run very fast.
AVFoundationMBS.captureOutputDidFinishRecordingToOutputFileAtURL(captureOutput as AVCaptureFileOutputMBS, outputFileURL as string, connections() as AVCaptureConnectionMBS, error as NSErrorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
captureOutput: The capture file output that has finished writing the file.
outputFileURL: The file URL of the file that is being written.
connections: An array of AVCaptureConnection objects attached to the file output that provided the data that is being written to the file.
error: If the file was not written successfully, an error object that describes the problem; otherwise nil.
This method is called whenever a file is finished. If the file was forced to be finished due to an error, the error is described in the error parameter—otherwise, the error parameter is nil.
This method is called when the file output has finished writing all data to a file whose recording was stopped, either because startRecordingToOutputFileURL or stopRecording were called, or because an error (described by the error parameter), occurred (if no error occurred, the error parameter is nil).
This method is always called for each recording request, even if no data is successfully written to the file.
Some examples using this event:
AVFoundationMBS.captureOutputDidOutputMetadataObjects(captureOutput as AVCaptureOutputMBS, metadataObjects() as AVMetadataObjectMBS, connection as AVCaptureConnectionMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 14.0 | ❌ No | ❌ No | ❌ No | ✅ Yes | All |
Only for iOS!
captureOutput: The AVCaptureMetadataOutputMBS object that captured and emitted the metadata objects.
metadataObjects: An array of AVMetadataObjectMBS instances representing the newly emitted metadata. Because AVMetadataObject is an abstract class, the objects in this array are always instances of a concrete subclass.
connection: The capture connection through which the objects were emitted.
The AVCaptureMetadataOutputMBS object emits only metadata objects whose types are included in its metadataObjectTypes property. The delegate implements this method to perform additional processing on metadata objects as they become available. If you plan to use metadata objects outside the scope of this method, you must store strong references to them and remove those references when the objects are no longer required.
Some examples using this event:
AVFoundationMBS.captureOutputDidOutputSampleBuffer(captureOutput as AVCaptureOutputMBS, OutputSampleBuffer as CMSampleBufferMBS, connection as AVCaptureConnectionMBS, features as variant, pic as picture)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Called by AVCaptureFileOutputMBS, AVCaptureVideoDataOutputMBS and AVCaptureAudioDataOutputMBS.
features is an array of object, which contains detected CIFeatureMBS objects for AVCaptureVideoDataOutputMBS with CIDetector.
Some examples using this event:
AVFoundationMBS.captureOutputDidPauseRecordingToOutputFileAtURL(captureOutput as AVCaptureFileOutputMBS, fileURL as string, connections() as AVCaptureConnectionMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
captureOutput: The capture file output that has paused its file recording.
fileURL: The file URL of the file that is being written.
connections: An array of AVCaptureConnection objects attached to the file output that provided the data that is being written to the file.
This method is called whenever a request to pause recording is actually respected.
It is safe for delegates to change what the file output is currently doing (starting a new file, for example) from within this method. If recording to a file is stopped, either manually or due to an error, this method is not guaranteed to be called, even if a previous call to pauseRecording was made.
Some examples using this event:
AVFoundationMBS.captureOutputDidResumeRecordingToOutputFileAtURL(captureOutput as AVCaptureFileOutputMBS, fileURL as string, connections() as AVCaptureConnectionMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
captureOutput: The capture file output that has resumed its paused file recording.
fileURL: The file URL of the file that is being written.
connections: An array of AVCaptureConnection objects attached to the file output that provided the data that is being written to the file.
Delegates can use this method to be informed when a request to resume recording is actually respected.
It is safe for delegates to change what the file output is currently doing (starting a new file, for example) from within this method. If recording to a file is stopped, either manually or due to an error, this method is not guaranteed to be called, even if a previous call toresumeRecording was made.
Some examples using this event:
AVFoundationMBS.captureOutputDidStartRecordingToOutputFileAtURL(captureOutput as AVCaptureFileOutputMBS, fileURL as string, connections() as AVCaptureConnectionMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
captureOutput: The capture file output that started writing the file.
fileURL: The file URL of the file that is being written.
connections: An array of AVCaptureConnection objects attached to the file output that provided the data that is being written to the file.
If an error condition prevents any data from being written, this method may not be called. captureOutputwillFinishRecordingToOutputFileAtURL and captureOutputdidFinishRecordingToOutputFileAtURL are always called, even if no data is written.
Some examples using this event:
AVFoundationMBS.captureOutputWillFinishRecordingToOutputFileAtURL(captureOutput as AVCaptureFileOutputMBS, fileURL as string, connections() as AVCaptureConnectionMBS, error as NSErrorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
captureOutput: The capture file output that will finish writing the file.
fileURL: The file URL of the file that is being written.
connections: An array of AVCaptureConnection objects attached to the file output that provided the data that is being written to the file.
error: An error describing what caused the file to stop recording, or nil if there was no error.
This method is called when the file output will stop recording new samples to the file at outputFileURL, either because startRecordingToOutputFileURL or stopRecording were called, or because an error (described by the error parameter), occurred (if no error occurred, the error parameter is nil).
This method is always called for each recording request, even if no data is successfully written to the file.
Some examples using this event:
AVFoundationMBS.CaptureSessionDidStartRunning(session as AVCaptureSessionMBS, notification as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
notification is a NSNotificationMBS object.
AVFoundationMBS.CaptureSessionDidStopRunning(session as AVCaptureSessionMBS, notification as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
notification is a NSNotificationMBS object.
AVFoundationMBS.CaptureSessionRuntimeError(session as AVCaptureSessionMBS, error as NSErrorMBS, notification as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
notification is a NSNotificationMBS object.
You retrieve the underlying error from the notification's user info dictionary using the key AVCaptureSessionErrorKey.
AVFoundationMBS.captureStillImageAsynchronouslyCompleted(CaptureStillImageOutput as AVCaptureStillImageOutputMBS, prepareJpegStillImage as boolean, tag as variant, error as NSErrorMBS, imageDataSampleBuffer as CMSampleBufferMBS, JpegStillImage as memoryblock, Pic as Picture)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
If prepareJpegStillImage is true, the plugin will prepare the jpeg data and pass it as JpegStillImage, so the preparation is done on the capture thread.
imageDataSampleBuffer: The data that was captured.
The buffer attachments may contain metadata appropriate to the image data format. For example, a buffer containing JPEG data may carry a kCGImagePropertyExifDictionary as an attachment. See ImageIO/CGImageProperties.h for a list of keys and value types.
error
If the request could not be completed, an NSError object that describes the problem; otherwise nil.
Tag is the value you passed when calling the original method.
Some examples using this event:
The items on this page are in the following plugins: MBS AVFoundation Plugin.