any_video_player

Pub support

The video_player plugin gives low level access for the video playback. Advanced video player based on video_player.

Getting Started

Add the package to your pubspec.yaml:

dependencies:
  any_video_player: <latest_version>

Features

  • support video player event.
  • When the video width is larger than the screen width, the bottom progress bar is automatically aligned to the height of the video after scaling.

Usage

AnyVideoPlayerController anyVideoPlayerController = AnyVideoPlayerController(
            dataSource: VideoPlayerDataSource.network('https://flutter.github.io/assets-for-api-docs/assets/videos/butterfly.mp4'),
            controlsConf: ControlsConfiguration(paddingBottom: 10))

final playerWidget = AnyVideoPlayer(
  controller: anyVideoPlayerController,
);

Please make sure to dispose both controller widgets after use. For example by overriding the dispose method of the a StatefulWidget:

@override
void dispose() {
  anyVideoPlayerController.dispose();
  super.dispose();
}

Libraries

any_video_player