CircularProgressIndicator placeholder disappears before RTSP streaming loads.
CircularProgressIndicator placeholder disappears before RTSP streaming loads.
VlcPlayer(
controller: vlcController!,
aspectRatio: 16 / 9,
placeholder:
Center(child: CircularProgressIndicator()),
),
flutter_vlc_player: ^6.0.5
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 I did the following paleively:
Stack(
children: [
CircularProgressIndicator( strokeWidth: 1),
VlcPlayer(
controller: vlcController!,
aspectRatio: 16 / 9,
),
])
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
CircularProgressIndicator placeholder disappears before RTSP streaming loads. Stack( children: [ CircularProgressIndicator( strokeWidth: 1),
VlcPlayer( controller: vlcController!, aspectRatio: 16 / 9, ), ])
@JuniorFlorentino Hi, but the CircularProgressIndicator is still displayed when the video is displayed
me show your code
@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.