These are chat archives for pixijs/pixi.js

1st
Jun 2016
Jakob Steinn
@jstoone
Jun 01 2016 13:42
Hey, anyone tried fetching an external self-hosted video into a texture using PIXI.Texture.fromVideo()?

I've added {loadType: 4, crossOrigin: true}, and added CORS header:

< Access-Control-Allow-Origin: *

var loader = PIXI.loader;
loader.add(
    "video",
    "https://989bf7408fdf30c74ae9-ce233b2e3a024629c7d649801e691004.ssl.cf3.rackcdn.com/930x180.mp4",
    {
        crossOrigin: true,
        loadType: 4,
        // xhrType: 'blob',
        //loadType: Resource.LOAD_TYPE.VIDEO
    }
);
loader.load(assetsLoaded);
Ivan Popelyshev
@ivanpopelyshev
Jun 01 2016 14:10
hello
hm, no i didnt. Something wrong with fromVideo?
I dont remember if i did or not patch to load video with async loader