How to play multiple sources with video_player?
I'm about mixing the video and audio source, how to do it?
How to play multiple sources with video_player?
I'm about mixing the video and audio source, how to do it?
You only can merge them as a video but can not play them at a same time. If you want to merge it, try this: Merge videos
It worked for me.
final List<VideoPlayerController> _playerControllers = [
VideoPlayerController.asset("assets/videos/video_0.mp4"),
VideoPlayerController.asset("assets/videos/video_1.mp4"),
VideoPlayerController.asset("assets/videos/video_2.mp4"),
];
for (var element in _playerControllers) {
element.initialize().then((_) {
setState(() {});
});
}