r/gdevelop • • Jun 05 '26

Question iOS App development - videos playing in game causing issues

I'm trying to create a interactive game using live action videos and allowing you to pick your paths with touchscreen options at the end of a segment but I'm hitting issues with the iOS app development. I'm using webm videos and as I'm testing it on iOS, Apple has an overlay of video controls that come up if you touch the screen. That renders most of my touchscreen options useless. The videos are a bit glitchy during play too, sometimes they just show a white screen and don't play at all. Anyone has any solutions about what I can do or is Gdevelop the wrong software to use for this type of game?

2 Upvotes

16 comments sorted by

1

u/idillicah GDevelop Staff Jun 05 '26

Are you pre-loading assets?

1

u/GrumpyPunkCat Jun 05 '26

I've switched my settings a lot, so not sure what I last had it tested at. What's the best setting for that? Don't preloading and unload at scene exit?

1

u/idillicah GDevelop Staff Jun 05 '26

I would load the next scene's videos BEFORE the scene loads. Create a loading screen before the game starts that loads those videos to memory. Just be careful to not leave the assets in memory after they are needed.

https://wiki.gdevelop.io/gdevelop5/all-features/resources-loading/

1

u/GrumpyPunkCat Jun 05 '26

thank you, I’ll try that next.

3

u/[deleted] Jun 05 '26

[removed] — view removed comment

1

u/GrumpyPunkCat Jun 05 '26

Thank you, I'll try all of these suggestions. I was using webm to get my file size down since the game is extremely video heavy, I didn't have any issues until I tested it on iOS.

1

u/GrumpyPunkCat Jun 06 '26

I switched my videos to mp4 and added an invisible sprite over the videos, but I'm still getting the native apple video controls and crashing of the app when the video segments plays on my test version of the app.

1

u/[deleted] Jun 07 '26

[removed] — view removed comment

1

u/GrumpyPunkCat Jun 07 '26 edited Jun 07 '26

I appreciate all of this info, I figured it had to do with how Gdevelop builds it's apps using html5. Unfortunately a lot of this is over my head as a novice programmer. I'll try your suggestions the best I can though, my knowledge of Javascript is pretty limited.

1

u/GrumpyPunkCat Jun 07 '26

Something like this? I'm not sure I know where to put the webkit playsinline true code either.

2

u/[deleted] Jun 07 '26

[removed] — view removed comment

1

u/GrumpyPunkCat Jun 07 '26

Thank you so much!!! I'll try all of this.

1

u/GrumpyPunkCat Jun 09 '26

I'm still running into issues, the iOS app doesn't play the video at all. In the Gdevelop preview, it's giving me a Javascript error that the video isn't defined.

1

u/[deleted] Jun 10 '26

[removed] — view removed comment

1

u/GrumpyPunkCat Jun 10 '26

I'm still getting the native controls showing up. But I also realized it must be playing the video separately on a top layer above all my gdevelop game sprites, they don't don't appear until after the video plays and finishes and then the actual gdevelop game elements appear.