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

try to set the playerLoadingFallback, but occasionally it didn't work #264

Open
levinx7512 opened this issue Feb 26, 2024 · 1 comment
Open

Comments

@levinx7512
Copy link

levinx7512 commented Feb 26, 2024

version list:
Flutter 3.16.9
flick_video_player: ^0.7.0
video_player: ^2.8.2

demo:

FlickVideoPlayer(
        flickManager: flickManager,
        flickVideoWithControls: FlickVideoWithControls(
          videoFit: BoxFit.contain,
          controls: SafeArea(
            child: FlickPortraitControls(
              iconSize: 22,
              fontSize: 14,
              progressBarSettings: FlickProgressBarSettings(
                padding: const EdgeInsets.symmetric(
                  vertical: 10,
                ),
              ),
            ),
          ),
          // TDLoading is a custom style loading widget
          playerLoadingFallback: const Center(
            child: TDLoading(
              size: TDLoadingSize.medium,
              icon: TDLoadingIcon.circle,
              iconColor: Color.fromRGBO(214, 224, 244, 1),
            ),
          ),
        ),
      )

But it still shows the purple one. What should I do?

image
@knowsach
Copy link

@ly75x12
I tried adding a custom playerLoadingFallback and it worked fine for me, attached a video for your reference.

flick_video_player : 0.8.0
video_player : 2.8.6

Can you update flick version and try out again ?

Screen.Recording.2024-05-13.at.11.49.01.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants