isBuffering method

bool? isBuffering()

Flag which determines whenever player is loading video data or not.

Implementation

bool? isBuffering() {
  if (videoPlayerController == null) {
    throw StateError("The data source has not been initialized");
  }
  return videoPlayerController!.value.isBuffering;
}