isVideoInitialized method

bool? isVideoInitialized()

Flag which determines whenever player data source has been initialized.

Implementation

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