Reputation: 31
I want to play two videos simultaneously in flutter web, one video must play in the foreground and one in the background and I want to switch between them and the videos shouldn't pause. I am able to achieve this in Android using the mixWithOthers options, but the same isn't working in flutter web. Is there any other workaround to achieve the desired output.
Thanks in advance!
Upvotes: 1
Views: 165
Reputation: 19
You can use this in your videoplayer
controller; add these lines:
videoPlayerOptions: VideoPlayerOptions(
mixWithOthers: true,
)
The mixWithOthers
will allow you to play two videos simultaneously and also the audio that comes with the two videos will also be a better experience; you can mute based on your needs.
Upvotes: 0