Hi,
I would like to dynamically load an external video from a URL. The current video player let’s me import a video file before I compile the game and I can also embed a video using an iframe. The problem with iframe is that I can’t control the video.
Would it be possible to actually use videos from an external URL using some kind of JavaScript video player?
My goal is to get all the content for my game from a WordPress site that we have built, including text, images and videos. WordPress use json so it doesn’t seem to be impossible.
In previous projects I have loaded images both from URLs and from local folders using the LoadImageFromURL extension. To me it seems like video content should be able to switch in a similar way. Or maybe by using a JavaScript video player such as video.js?
The most important feature is to make the video clips start automatically when entering a scene. We are having problems with that in the html version. Some videos start and some doesn’t. I also would like to be able to check how far a film has played and based on that show additional information outside the video player. I guess that these features can be done with Javascript or CSS on the web page but I only know GDevelop and I would be much more comfortable if I could do a 100% GDevelop version of the web site, since I don’t want to depend on traditional web programmers.
Right now we are running the site in an iFrame from GDevelop, since when running Chrome in full screen at the museum we get some other unwanted features such as zoom, pinch, edge swipe etc. We do run some scripts to handle these issues but they seem to be disabled when Windows and Chrome are updated. GDevelop is more predictable in that sense.
Yes,
I often use the video object and I know it’s parameters well. Problem is that it is a bit limited. Videos have to be imported to the project before compiling the game/app. If videos could be external we could get around the size limit of GDevelop/Electron apps (1 GB?) and also change video content dynamically after publishing games.
Hmm. If the video auto-plays, can you add a timer that assumes it has kept running and displays the information on the screen at the appropriate time? So it doesn’t need to talk to the video. It just fires the events based on a timer.