lxnd

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Hi, Spent some time trying to preload a mix of picture and video. I finally did it that way : let datas = [ {name: 'picto', url: '/static/picto.png'}, {name: 'movie', url: '/static/movie.mp4'} ] PIXI.loader.add(datas) PIXI.loader.load(onPreloadComplete) /* ... */ function onPreloadComplete (loader, resources) { let app = new PIXI.Application(/*...*/) /* ... */ let videoData = resources['test-movie'].data let videoBaseTexture = PIXI.VideoBaseTexture.fromVideo(videoData) let videoSprite = PIXI.Sprite.from(videoBaseTexture) app.stage.addChild(videoSprite) /* ... */ }