any_video_player 0.0.4+2 copy "any_video_player: ^0.0.4+2" to clipboard
any_video_player: ^0.0.4+2 copied to clipboard

outdated

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

any_video_player #

Pub support

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

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();
}
1
likes
0
pub points
40%
popularity

Publisher

unverified uploader

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, video_player

More

Packages that depend on any_video_player