processing-video
processing-video copied to clipboard
Movie fails to play video over http
https://github.com/processing/processing/issues/2008
A hint for anyone who runs into this bug (as I did recently): It's very easy to work around it by loading the video data with loadBytes(), save the file to disk with saveBytes() and then have the Movie constructor read it from there.
Need to check playback over http, should be supported.
I just tested, and this works. However! It only works with http, and not https, at least with my example file below
import processing.video.*;
Movie movie;
void setup() {
size(300, 400);
background(0);
movie = new Movie(this, "http://cacheflowe.com/images/code/installation/[email protected]");
movie.loop();
}
void movieEvent(Movie m) {
m.read();
}
void draw() {
image(movie, 0, 0, width, height);
}
If I use https (the host does have a valid SSL cert) I get this error:
BaseSrc: [source] : Secure connection setup failed.
BaseSrc: [source] : Internal data stream error.
Element: [typefindelement0] : Stream doesn't contain enough data.