Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Movie fails to play video over http #11

Open
benfry opened this issue Jul 31, 2014 · 3 comments
Open

Movie fails to play video over http #11

benfry opened this issue Jul 31, 2014 · 3 comments

Comments

@benfry
Copy link
Contributor

benfry commented Jul 31, 2014

processing/processing#2008

@korakinos
Copy link

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 codeanticode added this to the Version 2.0 stable milestone Aug 25, 2019
@codeanticode
Copy link
Member

Need to check playback over http, should be supported.

@cacheflowe
Copy link

cacheflowe commented Feb 23, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants