nikolaydymura / flutter_gpu_video_filters

MIT License
6 stars 1 forks source link

Changing filter without creating a new player instance #27

Open cse-ariful opened 10 months ago

cse-ariful commented 10 months ago

One problem I faced in this package is not having the ability to change filter without reinitializing the full preview. As the widget is tied to a configuration so when we try to pass a new configuration the internal implementation prepare a new player instance and it shows a black screen flicker. I think it's possible to set the configuration and other parameter in a controller and made the user able to change it without dropping the old widget and building new one with a black screen at first,

What is the problem? It shows a black screen when before the exoplayer is get prepared.

What we can do? As we want to apply the filter on same video instance. We can avoid reinitializing the player and make the user able to change the filter to a new one and the player should go smoothly on it's current position.