Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
AVRecorder.CanPerformReactionEffects
Indicates whether reactions can be performed on a particular AVCaptureDevice.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
AVRecorder | 13.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "AVRecorder.CanPerformReactionEffects"; AVSession ) More
Parameters
Parameter | Description | Example |
---|---|---|
AVSession | The ID for the AVRecorder session as returned by AVRecorder.Init. | $AVSession |
Result
Returns 1, 0 or error.
Description
Indicates whether reactions can be performed on a particular AVCaptureDevice.This requires reactionEffectsEnabled to be true, as well as using a AVCaptureDeviceFormat with reactionEffectsSupported.
This readonly property returns 1 when resources for reactions are available on the device instance. When true, calls to AVRecorder.PerformEffectForReaction will render on the video feed, otherwise those calls are ignored. It is key-value observable.
Requires macOS 14.0 or iOS 17.0.
Examples
Try it:
MBS( "AVRecorder.CanPerformReactionEffects"; $$AVSession )
Example result:
ReactionBalloons
ReactionFireworks
ReactionThumbsUp
ReactionRain
ReactionThumbsDown
ReactionLasers
ReactionConfetti
ReactionHeart
See also
Release notes
- Version 13.5
- Added functions to work with reaction effects on macOS 14 and iOS 17 with AVRecorder: AVRecorder.AvailableReactionTypes, AVRecorder.CanPerformReactionEffects, AVRecorder.PerformEffectForReaction, AVRecorder.ReactionEffectGesturesEnabled and AVRecorder.ReactionEffectsEnabled functions.
Blog Entries
This function is free to use.
Created 21st October 2023, last changed 21st October 2023
AVRecorder.AvailableReactionTypes - AVRecorder.CaptureStillPhoto