isVideoInitialized method

bool? isVideoInitialized()

Flag which determines whenever player data source has been initialized.

Implementation

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