Skip to content

1.0.0

Compare
Choose a tag to compare
@charliesantos charliesantos released this 24 Jun 17:32
· 57 commits to master since this release

1.0.0 (June 24, 2021)

1.0.0-beta.3 has been promoted to 1.0.0 GA. Twilio Video Processors will use Semantic Versioning 2.0.0 for all future changes. Additionally, this release also includes the following new features and improvements.

  • Added isSupported API which can be used to check whether the browser is supported or not. This API returns true for chromium-based desktop browsers.

    import { isSupported } from '@twilio/video-processors';
    
    if (isSupported) {
      // Initialize the background processors
    }
  • GaussianBlurBackgroundProcessor and VirtualBackgroundProcessor's processFrame method signature has been updated in order to improve performance. With this update, the output frame buffer should now be provided to the processFrame method which will be used to draw the processed frame.

    Old signature:

    processFrame(inputFrame: OffscreenCanvas)
      : Promise<OffscreenCanvas | null>
      | OffscreenCanvas | null;

    New signature:

    processFrame(inputFrameBuffer: OffscreenCanvas, outputFrameBuffer: HTMLCanvasElement)
      : Promise<void> | void;
  • The segmentation model has been changed from MLKit Selfie Segmentation to MediaPipe Selfie Segmentation Landscape to improve performance.

  • Added debounce logic on the image resizing step to improve performance.