isLiveStream method

bool isLiveStream()

Flag which determines whenever player is playing live data source.

Implementation

bool isLiveStream() {
  if (_betterPlayerDataSource == null) {
    BetterPlayerUtils.log("The data source has not been initialized");
    throw StateError("The data source has not been initialized");
  }
  return _betterPlayerDataSource!.liveStream == true;
}