flutter_use_video library

Functions

useAssetVideo({required String asset, String? package, bool autoPlay = false, bool looping = false, Future<ClosedCaptionFile>? closedCaptionFile, VideoPlayerOptions? videoPlayerOptions}) → VideoPlayerController
Creates VideoPlayerController using video_player(ref link), plays video obtained from an asset, tracks its state, and exposes playback controls. ref link
useNetworkVideo({required String dataSource, bool autoPlay = false, bool looping = false, Future<ClosedCaptionFile>? closedCaptionFile, VideoPlayerOptions? videoPlayerOptions, Map<String, String> httpHeaders = const {}}) → VideoPlayerController
Creates VideoPlayerController using video_player(ref link), plays video obtained from the network, tracks its state, and exposes playback controls. ref link