'flutter_vlc_player lag when calling mediaPlayer.stop() on android native
I'm using flutter_vlc_player for video playback on Android and ios.
When I dispose the player controller, it cause jank for a few frames.
When I debug the native android code, I see that mediaPlayer.stop() in void dispose() took about 40ms to complete, causing the jank. I used the player inside PageView and dispose the controller in the middle of page transition, so the jank is noticeable.
Is there a solution or workaround to make the ui look smooth?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
