Skip to content

scalechange event on @remotion/player's ref #2011

@Just-Moh-it

Description

@Just-Moh-it

Feature Request 🛍️

Was wondering if we could add a scalechange event on the remotion player ref just like how timeUpdate and other events currently exist.

Use Case

I've been injecting the gesture controls for a wysiwyg editor into the player and since it contains controls/gesture-handles that need to be consistently sized regardless of the view port, I apply the inverse of the editorZoom to the controls, so the scaling of the video doesn't affect the controls and it cancels out.

However, adding more and more functionality is slowing down the application and I think that getting the zoom every few seconds would prove to be a major performance drain as I add more features. So having a scalechange event would be a life-saver here!

@JonnyBurger let me know if you want to assign me this issue, happy to add this 😊

Possible Solution

A scalechange event on the playerRef!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions