multi_video_player 0.0.1
multi_video_player: ^0.0.1 copied to clipboard
Multi Video Player.
Multi Video Player #
Play multiple preloaded videos just by providing list of video sources.
Example #
MultiVideoPlayer.asset(
videoSourceList: videos,
scrollDirection: Axis.horizontal,
preloadPagesCount: 2,
onPageChanged: (videoPlayerController, index) {},
getCurrentVideoController: (videoPlayerController) {},
),
Use ScrollConfiguration if scrolling not work for WEB.
ScrollConfiguration(
behavior: ScrollConfiguration.of(context).copyWith(
dragDevices: {
PointerDeviceKind.touch,
PointerDeviceKind.mouse,
},
),
child: MultiVideoPlayer.asset(
videoSourceList: videos,
scrollDirection: Axis.horizontal,
preloadPagesCount: 2,
onPageChanged: (videoPlayerController, index) {},
getCurrentVideoController: (videoPlayerController) {},
),
),