brianchirls / Seriously.js

A real-time, node-based video effects compositor for the web built with HTML5, Javascript and WebGL
MIT License
3.87k stars 354 forks source link

Cannot Connect a Foreign Node #122

Open LoganArnett opened 8 years ago

LoganArnett commented 8 years ago

I am trying to run Seriously in an Angular application that allows people to take greenscreen photos in a kiosk style setting. If the user at any time decides to just reset and start over I take them back to the welcome screen in the single page app.

I run:

if (target.source) {
  target.source.destroy();
}

which is successful but then when I continue through the flow again i see this error image

Trying to figure out what is happening because the rest of the application appears to work even with this error

brianchirls commented 8 years ago

Once you destroy a node, you cannot use it again. You have to create a new node.

What kind of node is target.source?