I have a Flutter app. On opening the app, the app will play a muted video, till here it's perfectly fine. But when I play music in Spotify in the background, and then I try to open my Flutter app, Spotify pauses the background music. So all I want is, to keep Spotify playing music in background while the video in my app keeps playing muted. And when I try to unmute the video in my app, the Spotify music must pause.
videoPlayerController = VideoPlayerController.asset(ConstantAssets.dummyVideo3)
..addListener(() {})
..setLooping(true)
..initialize().then((value){
videoPlayerController.play();
videoPlayerController.setVolume(0);
});
So, the concept is like "Playing video Instagram" while listening to Spotify in the background. Is it possible to do something like that?