Open benfry opened 10 years ago
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/me-plus-you-@akosorban-2.mp4");
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.
https://github.com/processing/processing/issues/2008