twilio / twilio-video-processors.js

Twilio Video Processors is a collection of video processing tools which can be used with Twilio Video JavaScript SDK to apply transformations and filters to a video track.
Other
33 stars 21 forks source link

Unhandled Rejection (TypeError): window.createTwilioTFLiteModule is not a function #39

Closed bhavinatharva closed 2 years ago

bhavinatharva commented 2 years ago

image

Code to reproduce the issue: blurBackground.loadModel().then(() => { createLocalVideoTrack({ width: 640, height: 480, frameRate: 24 }).then(track => { window.track.addProcessor(blurBackground); }); });

// TODO

Expected behavior: it should load video with blur background TODO

Actual behavior: Gives an error of undefined function TODO

Software versions:

charliesantos commented 2 years ago

@bhavinatharva it seems like the library is not finding the tflite-simd-1-0-0.js or tflite-1-0-0.js.

bhavinatharva commented 2 years ago

HI @charliesantos Thanks for the reply image

bhavinatharva commented 2 years ago

@charliesantos image

i am getting this in console image

even though my browser is perfectly supported

bhavinatharva commented 2 years ago

@charliesantos, Need to put all asset files in public folder and give the assetpath: '/' resolve the issue

AndreyPatseiko commented 1 year ago

I used this approach in React js app https://giters.com/twilio/twilio-video-processors.js/issues/38