Play multiple preloaded videos just by providing list of video sources
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) {},
),
),