Can you set the target file for the video object in events? and is the video object on the web app using the same method for url as the other objects on the web app?, Could this be done with js if not?
Bouh
June 5, 2022, 10:33am
#2
From what I remember pixijs loads a sprite or video texture the same way, so the same technique should work.
Arthuroo has an extension that allows you to change the url of a resource:
GDevelopApp:main
← GDevelopApp:load-from-url
opened 01:47AM - 04 Jun 22 UTC
Example file: [load-from-url.zip](https://github.com/GDevelopApp/GDevelop-extens… ions/files/8836589/load-from-url.zip)
Adds a few actions that have something to do with loading resources.
Points of importance for the review:
- A private JS variable is being used in the action for audio resources, which is not acceptable. My implementation of the audio one is generally meh in my opinion, I think we probably would remove it unless you think it is essential to keep. Other actions are good.
- The name is kind of bad.
- The extension is maybe not focused enough.
- It uses parameter types not officially supported by events-based extensions. They work just fine without hacks in JavaScript though, only real downside is that if you select another type for those fields while editing the extension you will be stuck unable to go back unless you modify the JSON directly or redownload the extension. I think that this is fine but you may think otherwise.
My extension only works with images and audio, not videos
1 Like
Bouh
June 5, 2022, 10:45am
#4
If we change the object type it can be used, it is for sure sub-optimal.
Nouveau dossier (4).zip
1 Like