1.0.0
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 returnstrue
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 theprocessFrame
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.