Skip to content
Commit 27fa1d0d authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Disable virtual background if TFLite model could not be loaded



Until now it was checked if the blur background was supported based on
whether Web Assembly was available in the browser and whether the
browser supported the needed canvas filter. This could be done
statically, without having a VirtualBackground object. However, to blur
the background once the VirtualBackground object is created it is also
needed to download and compile a TFLite model; this could fail, for
example, if the web server is not properly configured to send .wasm
files. Now if virtual background is supported but the model failed to
load it behaves as if virtual background is not supported.

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 79c4c8c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment