Replies: 2 comments
-
I've realised that I was confusing Loader and Assets loader, and that the correct file is this one: https://github.com/pixijs/pixijs/blob/c04c09c50874fef9296555af23e25fe58cc808a9/packages/assets/src/Assets.ts It seems to handle alias and url, so my problem is coming from somewhere else, I'll keep investigating. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It seems that Assets uses Loader in _mapLoadToResolve, so the problem comes from promiseCache[url] after all. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! Thank you for this great library!
I think I'm working on a very specific use case. It seems impossible to load 2 assets with the same url as Assets.load() returns promiseCache[url] here: https://github.com/pixijs/pixijs/blob/c04c09c50874fef9296555af23e25fe58cc808a9/packages/assets/src/loader/Loader.ts#L189C8-L189C8
I want to create 2 video assets with the same url so that I can control their currentTime separately. Given that Assets.load() returns the same asset, even if I use 2 different aliases, this doesn't seem possible at the moment.
Is there a workaround, and what do you think about using aliases rather than urls for promiseCache?
Beta Was this translation helpful? Give feedback.
All reactions