Quantcast
Channel: Adobe Community : Popular Discussions - Premiere Pro SDK
Viewing all articles
Browse latest Browse all 53010

How to compute on a background thread or process?

$
0
0

Hey everyone,

I would like to put a computational intensive task off the main thread so the UI of our HTML5 extension is not blocked. Javascript WebWorkers do not work because I need access to the file system using node.js. WebWorkers do not support node.js. I can imagine a couple of possible solutions:

 

1. Node.js allows to create child processes which would basically launch a new Node.js instance. child_process.fork() looks like exactly what I want. I allows to have back and forth communication. BUT it is not working. The child_process is exiting with code 255

Is child_process.fork() supported?

 

2. I have not tried or researched for this one. Is it possible to launch a secondary invisible panel extension and then send data to it and receive progress back?

 

Does one of you guys have a better "Background Thread" solution?

 

Thanks,

Thomas


Viewing all articles
Browse latest Browse all 53010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>