GeekyAnts / flick-video-player

MIT License
265 stars 267 forks source link

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

Open levinx7512 opened 7 months ago

levinx7512 commented 7 months ago

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 commented 5 months ago

@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 ?

https://github.com/GeekyAnts/flick-video-player/assets/29561914/d86a7e63-f8f0-4d0d-a0cd-57f03afcb8dc