processing / processing-video

GStreamer-based video library for Processing
276 stars 130 forks source link

Movie fails to play video over http #11

Open benfry opened 10 years ago

benfry commented 10 years ago

https://github.com/processing/processing/issues/2008

korakinos commented 8 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.

codeanticode commented 5 years ago

Need to check playback over http, should be supported.

cacheflowe commented 1 year ago

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.