Skip to content

Commit 85cddc5

Browse files
committed
Updated comment
1 parent a01ef87 commit 85cddc5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lib/src/helpers/utils.dart

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,15 @@ String formatDuration(Duration position) {
3434
return formattedTime;
3535
}
3636

37-
/// Get the current buffering state of the video player. Will invoke a
38-
/// Workaround for Android, as a bug in the video_player plugin prevents to get
39-
/// the actual buffering state, always returning true and breaking ui elements.
37+
/// Gets the current buffering state of the video player.
38+
///
39+
/// For Android, it will use a workaround due to a [bug](https://github.com/flutter/flutter/issues/165149)
40+
/// affecting the `video_player` plugin, preventing it from getting the
41+
/// actual buffering state. This currently results in the `VideoPlayerController` always buffering,
42+
/// thus breaking UI elements.
43+
///
4044
/// For this, the actual buffer position is used to determine if the video is
41-
/// buffering or not. See #912 for more details.
45+
/// buffering or not. See Issue [#912](https://github.com/fluttercommunity/chewie/pull/912) for more details.
4246
bool getIsBuffering(VideoPlayerController controller) {
4347
final VideoPlayerValue value = controller.value;
4448

0 commit comments

Comments
 (0)