Skip to content

Commit a01ef87

Browse files
committed
Added information about getIsBuffering
1 parent 3515ca1 commit a01ef87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/helpers/utils.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ 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.
40+
/// For this, the actual buffer position is used to determine if the video is
41+
/// buffering or not. See #912 for more details.
3742
bool getIsBuffering(VideoPlayerController controller) {
3843
final VideoPlayerValue value = controller.value;
3944

0 commit comments

Comments
 (0)