You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an open [issue](https://github.com/flutter/flutter/issues/165149) that the buffering state of a video is not reported correctly. With this, the loading state is always triggered, hiding controls to play, pause or seek the video. A workaround was implemented until this is fixed, however it can't be perfect and still hides controls if seeking backwards while the video is paused, as a result of lack of correct buffering information (see #912).
293
+
294
+
Add the following to partly fix this behavior:
295
+
296
+
```dart
297
+
// Your init code can be above
298
+
videoController.addListener(yourListeningMethod);
299
+
300
+
// ...
301
+
302
+
bool wasPlayingBefore = false;
303
+
void yourListeningMethod() {
304
+
if (!videoController.value.isPlaying && !wasPlayingBefore) {
305
+
// -> Workaround if seekTo another position while it was paused before.
306
+
// On Android this might lead to infinite loading, so just play the
You can also disable the loading spinner entirely to fix this problem in a more _complete_ way, however will remove the loading indicator if a video is buffering.
The video_player plugin used by chewie will only work in iOS simulators if you are on flutter 1.26.0 or above. You may need to switch to the beta channel `flutter channel beta`
0 commit comments