Event/Action to change the size of a video

Dear Gdev team,

I noticed that, as of now, we do not have an action to change the size/scale of a video.

Is there a reason for this? I feel that since you can edit it in the Editor, it should be possible to do it from the events as well! (I really, really need this)

1 Like

I really think that this is a necessary function to have.

Oddly, you can resize the video with the tween behavior. So, it doesn’t seem like a limitation of the object format.

I’m guessing that you should also be able to change the zoom of the layer/camera that the video object is on.

2 Likes

Whoa this is really odd. I didn’t think about it.

Right now, I change the size with the zoom, like you said, but a simple scale event would be much easier.

I suppose the devs forgot to add it? Since you can change it with a tween, which I suppose is much harder…

I just checked the Javascript events for the video object and the set width and set height methods are listed. It makes we wonder if it’s a bug or a feature. Maybe there’s the potential for problems if you resize a video. It’s tough to know what might happen in different OSs and browsers.

https://docs.gdevelop.io/GDJS%20Runtime%20Documentation/classes/gdjs.VideoRuntimeObject.html

1 Like

That’s really interesting!

I wonder if the devs will see this post

2 Likes

i wont lie thats pretty smart @Keith_1357 !!!

1 Like

If u do mention them,(like @zGameCreator), then (hopefully) they will.