[ ] prevent events from running again
(node:78832) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 videos:write listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit
[ ] manage / prevent / kill ffmpeg processes
this is just for development, so don't have a big shit.
if (import.meta.hot) {
import.meta.hot.accept();
import.meta.hot.dispose(() => {
// Clear timeouts, intervals, or any other cleanup tasks
clearTimeout(yourTimeout);
clearInterval(yourInterval);
// Perform other necessary cleanup tasks here
});
on hot reload
(node:78832) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 videos:write listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit
this is just for development, so don't have a big shit.
see: https://vitejs.dev/guide/api-hmr
something like this