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

Mjpeg Stream And Seriously #149

Closed tournevis closed 7 years ago

tournevis commented 7 years ago

Hi, I'm trying to apply seriously effects on an mjpeg stream. To import my mjpeg stream I use an html tag otherwise it won't work with a

Here is the problem, if I set my img tag as a source to seriously, it applies the effects on the first frame of the stream and doesn't update.

Is there any way to use Seriously with mjpeg stream ? Thanks

tournevis commented 7 years ago

I figured it out using this :

seriously.go(function () {
    //forces the image to update
    image.update();
})

I did this by referring this issue https://github.com/brianchirls/Seriously.js/issues/72