BetterPlayer.file constructor

BetterPlayer.file(
  1. String url,
  2. {BetterPlayerConfiguration? betterPlayerConfiguration}
)

Implementation

factory BetterPlayer.file(
  String url, {
  BetterPlayerConfiguration? betterPlayerConfiguration,
}) =>
    BetterPlayer(
      controller: BetterPlayerController(
        betterPlayerConfiguration ?? const BetterPlayerConfiguration(),
        betterPlayerDataSource:
            BetterPlayerDataSource(BetterPlayerDataSourceType.file, url),
      ),
    );