abbas jafari Posted February 5, 2020 Share Posted February 5, 2020 hi masters ? im beginner in pixi.js and game develop. i write a program that in some time load some picture or video or music... not problem in pictures but when load a video or a music. it take long time until play . I decided when start my program . download all video and all music. then show a progressbar with title (loading...) i created my progressBar but can't connect it on my media. thanks for your helps. and sorry for my english languge... Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 5, 2020 Share Posted February 5, 2020 So, basically, in web there are two ways - either preload either stream. PixiJS does have only a bit of code that is managing video. PixiJS does have only a few bits of code that manage videos/audio. PixiJS loader should, in theory, preload everything, and it should work, but in practice there are many small things missing. That's why I cant understand what do you want. Did you try to use default PixiJS loader ? If so, what problems did you encounter? If you dont know how internally PixiJS loader works - well, its actually https://github.com/englercj/resource-loader , you can read source code there. And nothing stops you from debugging it. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 5, 2020 Share Posted February 5, 2020 Oh i mean resource-loader v3 its this one: https://github.com/englercj/resource-loader/tree/8c27956c2ee68e5190e489d87a3e641df035116b abbas jafari 1 Quote Link to comment Share on other sites More sharing options...
abbas jafari Posted February 6, 2020 Author Share Posted February 6, 2020 ivan.popelyshev thanks for replying. this libraray seems is good . but not understand how use it in PIXI.js can give me an example? can describe Quote Link to comment Share on other sites More sharing options...
d13 Posted February 6, 2020 Share Posted February 6, 2020 There's an example here: https://github.com/kittykatattack/learningPixi#loading abbas jafari 1 Quote Link to comment Share on other sites More sharing options...
abbas jafari Posted February 6, 2020 Author Share Posted February 6, 2020 thnkssss aloot. now understand :-? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.