flutter_vlc_player icon indicating copy to clipboard operation
flutter_vlc_player copied to clipboard

CircularProgressIndicator placeholder disappears before RTSP streaming loads.

Open JuniorFlorentino opened this issue 4 years ago • 7 comments

CircularProgressIndicator placeholder disappears before RTSP streaming loads.


VlcPlayer(
    controller: vlcController!,
    aspectRatio: 16 / 9,
    placeholder:
        Center(child: CircularProgressIndicator()),
  ),

flutter_vlc_player: ^6.0.5

JuniorFlorentino avatar Nov 25 '21 14:11 JuniorFlorentino

I have the same issue with hls streams. The player leaves the buffering state and the placeholder disappears. But before the video actually starts playing it can still take a while. I tried to find a way to determine something like when the first frame is shown for letting my own loading indicator implementation disappear, but I couldn't find a solution.

dober2 avatar Nov 28 '21 03:11 dober2

@dober2 I did the following paleively:

Stack(
      children: [
CircularProgressIndicator( strokeWidth: 1),

VlcPlayer(
    controller: vlcController!,
    aspectRatio: 16 / 9,
  ),
])

JuniorFlorentino avatar Nov 29 '21 18:11 JuniorFlorentino

Hello, it is happening to me right now with the latest version. Putting a CircularProgressIndicator in the PlaceHolder is not displayed. Any way to fix it?

TheHypnoo avatar Mar 07 '22 12:03 TheHypnoo

@TheHypnoo

CircularProgressIndicator placeholder disappears before RTSP streaming loads. Stack( children: [ CircularProgressIndicator( strokeWidth: 1),

VlcPlayer( controller: vlcController!, aspectRatio: 16 / 9, ), ])

JuniorFlorentino avatar Mar 07 '22 12:03 JuniorFlorentino

@JuniorFlorentino Hi, but the CircularProgressIndicator is still displayed when the video is displayed

TheHypnoo avatar Mar 07 '22 13:03 TheHypnoo

me show your code

JuniorFlorentino avatar Mar 07 '22 13:03 JuniorFlorentino

@TheHypnoo

CircularProgressIndicator placeholder disappears before RTSP streaming loads. Stack( children: [ CircularProgressIndicator( strokeWidth: 1),

VlcPlayer( controller: vlcController!, aspectRatio: 16 / 9, ), ]) Your method solved my problem, thanks.

JangTaewan avatar Jun 26 '23 06:06 JangTaewan