processing-video icon indicating copy to clipboard operation
processing-video copied to clipboard

Movie fails to play video over http

Open benfry opened this issue 11 years ago • 3 comments

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

benfry avatar Jul 31 '14 02:07 benfry

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.

korakinos avatar May 16 '16 14:05 korakinos

Need to check playback over http, should be supported.

codeanticode avatar Aug 25 '19 13:08 codeanticode

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.

cacheflowe avatar Feb 23 '23 16:02 cacheflowe