Thanks to visit codestin.com
Credit goes to github.com

Skip to content

video_player plugin always shows isBuffering as false #28494

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

Closed
divyanshub024 opened this issue Feb 26, 2019 · 39 comments · Fixed by flutter/plugins#2563, #72667 or #73071
Closed

video_player plugin always shows isBuffering as false #28494

divyanshub024 opened this issue Feb 26, 2019 · 39 comments · Fixed by flutter/plugins#2563, #72667 or #73071
Labels
customer: crowd Affects or could affect many people, though not necessarily a specific customer. p: video_player The Video Player plugin P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels.

Comments

@divyanshub024
Copy link

Description

Flutter video player plugin always shows isBuffering as false. Even in video_player plugin example, the code is there to show CircularProgressIndicator while buffering but it does not show. https://github.com/flutter/plugins/blob/347f508dd403f6b26789852b503199af5e8ee9f6/packages/video_player/example/lib/main.dart#L85

@divyanshub024 divyanshub024 changed the title [BUG]video_player plugin always shows isBuffering as false [BUG] video_player plugin always shows isBuffering as false Feb 26, 2019
@zoechi zoechi added plugin p: video_player The Video Player plugin labels Feb 26, 2019
@zoechi zoechi added this to the Goals milestone Feb 26, 2019
@4ever911
Copy link

4ever911 commented Mar 7, 2019

same here, even i set the buffer color, it never displays.

@divyanshub024
Copy link
Author

@4ever911 Yeah! It's not showing. Even in the video_player example.

@WoKee
Copy link

WoKee commented Mar 11, 2019

Yes,Have you found a solution?

@shmy
Copy link

shmy commented Mar 25, 2019

same here

@shmy
Copy link

shmy commented Mar 25, 2019

@WoKee try this

video_player:
    git:
      url: git://github.com/shmy/video_player_flutter.git

@shashikantshaale
Copy link

When can we get this solved?

@qvideo
Copy link

qvideo commented Apr 9, 2019

@WoKee try this

video_player:
    git:
      url: git://github.com/shmy/video_player_flutter.git

Thanks . But I need to customize the video view .

@braveeeehu
Copy link

How's it going?

@traverncompany
Copy link

How's it going? 22222

@aletorrado
Copy link

I just can't believe this isn't being addressed yet. Is there at least any workaround available? Thanks

@jeeali
Copy link

jeeali commented Sep 29, 2019

Anyone found the solution?

@orbitboy007
Copy link

I am getting same issue. any one get the solution?

@shashikantshaale
Copy link

Looks like flutter team isn't interested in this.😒

@timsneath
Copy link
Contributor

We're always interested in improving Flutter, but we (that is, the Google contributors working on Flutter) have a finite number of resources and many areas to work on. As a general rule, we use the following guide to determine what issues to prioritize: https://github.com/flutter/flutter/wiki/What-should-I-work-on%3F

One clear signal for us about what to prioritize is customer feedback, which is measured in part by thumbs-up on the original issue. Feel free to show us that this (or any other issue) is important to you by giving it the appropriate reaction.

Of course, others are welcome to offer pull requests based on a different prioritization, and we gratefully appreciate offers of help. Information on contributing can be found here: https://github.com/flutter/flutter/blob/master/CONTRIBUTING.md

@shashikantshaale
Copy link

We're developing Netflix, Amazon prime type platform called shaale.

We're releasing this in January 10 even if this bug is not resolved. Hoping that the flutter team resolves anytime soon, we've planned to fix in our next version release.

@Hixie Hixie changed the title [BUG] video_player plugin always shows isBuffering as false video_player plugin always shows isBuffering as false Jan 10, 2020
@ozyl
Copy link

ozyl commented Feb 3, 2020

same here

@obshksw
Copy link

obshksw commented Mar 2, 2020

It would be really great to have this fixed.

It seems that there's a fix on its way for Android, but there is the same problem on flutter web. isBuffering is always false and nothing updates it.
I added some logs in the video player eventListener and both VideoEventType.bufferingStart and VideoEventType.bufferingEnd events are never reached.
image

I'm really surprised that this issue is still open after over a year for something as fundamental as this!

@Jai05-techie
Copy link

I am getting same issue any one got solution on this ?

@mhstoller
Copy link

If the video files are small you can use the flutter_cache_manager package to download them and play it back as a file instead of a network video. Since the whole file is downloaded in cache and playing from a file it won't buffer.

import 'package:flutter_cache_manager/flutter_cache_manager.dart';
import 'package:video_player/video_player.dart';

   String videoURL = 'VIDEO_URL_HERE';
   try {
        File file = await DefaultCacheManager().getSingleFile(videoURL);
        if (file == null) throw Error();
        VideoPlayerController controller = VideoPlayerController.file(file);
        await controller.initialize();
      } catch (err) {
        print(err);
        //since there's an error with the file, remove the cached version
        await DefaultCacheManager().removeFile(videoURL);
      }

@obshksw
Copy link

obshksw commented Mar 12, 2020

@mhstoller This solution will not work on web, as stated in the video_player_web package:
https://pub.dev/packages/video_player_web

The Web platform does not suppport dart:io, so attempts to create a VideoPlayerController.file will throw an UnimplementedError.

Also, like you stated, it works for small files only, which is not an alternative to most buffering needs.

@beomjo
Copy link

beomjo commented Mar 17, 2020

I really want this problem solved.
Is there any temporary solution?

@mhstoller
Copy link

@Hixie Is it possible to get some attention on this issue? It seems more and more people are hitting it and it would be really helpful to have a fix.

There is already an open PR for the Android fix at least, here: flutter/plugins#2563

NickalasB added a commit to NickalasB/plugins that referenced this issue Dec 17, 2020
* master:
  fix(video_player): buffering state events missing on Android & Web (fixes flutter/flutter#28494) (flutter#2563)
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this issue Dec 18, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this issue Dec 18, 2020
@NicolasDionB
Copy link

@Salakar Thanks! Maybe an extra question: how can I know in which version for Flutter it's going to be?

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this issue Dec 18, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this issue Dec 18, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this issue Dec 18, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this issue Dec 19, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this issue Dec 19, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this issue Dec 19, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this issue Dec 20, 2020
amantoux pushed a commit to amantoux/plugins that referenced this issue Dec 24, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this issue Dec 29, 2020
@github-actions
Copy link

github-actions bot commented Aug 4, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2021
zhouyuanbo pushed a commit to zhouyuanbo/video_player_2.6.1 that referenced this issue Jun 1, 2023
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.