Skip to main content

Offscreen Effect Player iOS

Offscreen Effect Player briefly#

Offscreen Effect Player (OEP) allows processing an image using the Banuba SDK, no matter where it comes from, i.e. the camera, file system or somewhere else. OEP is the camera independent solution that returns a processed image in the same form as it is received. It means that an input image orientation stays the same after Banuba SDK processing as it was before. Additionally OEP allows drawing the processed image on an external texture.

The entry point to Offscreen Effect Player is BNBOffscreenEffectPlayer class. This class provides the following functionality:

  • Manage image processing โ€” processImage.
  • Apply the effect to the processed image (e.g. camera frame image of image from disk) โ€” loadEffect, unloadEffect.
  • Manage surface size โ€” surfaceChanged.
  • Manage audio โ€” enableAudio.
  • Calling any effect methods - callJsMethod.

Please, refer to OEP iOS demo app section for more details about Offscreen Effect Player using by the Demo application.

Last updated on