Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flock][Feature] - Support for Video Textures #46

Open
jezell opened this issue Jan 14, 2025 · 0 comments
Open

[Flock][Feature] - Support for Video Textures #46

jezell opened this issue Jan 14, 2025 · 0 comments
Labels
feature flock Relates to the Flock, a fork of Flutter

Comments

@jezell
Copy link
Collaborator

jezell commented Jan 14, 2025

Flutter Issue Ticket Link:

flutter/flutter#150592

Why didn't Flutter implement this?

Many people on the team seem to think the video_player package is enough and don't understand that the video_player package is too high level to be useful for many scenarios. WebRTC for example is a scenario where you need a video texture, but you can't use the video_player package at all.

Why does this belong in Flock?

To get video to perform well, hooks are needed in the engine. At the moment, video_player_web only supports rendering video with a platform view for example. I contributed changes to the engine such as this which can be used to render video textures more efficiently:

flutter/engine#53483

But the code to grab the frames and render them is tightly coupled to the engine implementation and the best way to implement video textures has varied from release to release depending on the APIs available. Ideally, plugin authors that need video support would have a higher level primitive in the engine itself for rendering a native video source into a texture that can then be referenced with the existing Texture APIs.

Describe the solution you'd like

There are already APIs for rendering textures in Flutter, they could be a potential way to expose this. The blocker on web is that there is not currently a Texture / TextureRegistry equivalent. Adding a TextureRegistry to web would be the first step to exposing a higher level platform specific APIs that render video content into a Texture, which can then be used by the widgets that already exist to render the texture.

#45

Additional context
Add any other context or screenshots about the feature request here.

@jezell jezell added flock Relates to the Flock, a fork of Flutter feature labels Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature flock Relates to the Flock, a fork of Flutter
Projects
None yet
Development

No branches or pull requests

1 participant