title: Flutter how to stop playing video on background state?
body: <p>I'm developing app with video player using <code>video_player 0.10.11+1</code> package.</p>
  
  <p>while video player is playing i put my app in background. On <code>AppLifecycleState.paused or AppLifecycleState.inactive</code> state after some time it was started playing in background.i was not getting how it started playing on background.so i have tried with  <code>didChangeAppLifecycleState</code> method on <code>AppLifecycleState.paused</code> i made video controller pause. still after that also same it was happening.</p>
  
  <p>This issue was happens in Redmi &amp; OnePlus mobiles</p>
  
  <p>Case,</p>
  
  <p>step 1 : while video player is playing i put my app background.</p>
  
  <p>step 2 : then i opened whatsapp,facebook other apps in my phone.</p>
  
  <p>step 3 : after some time video player of my app which is in background mode started playing without opening it.</p>
  
  <pre><code>@override
  void didChangeAppLifecycleState(AppLifecycleState state) {
      super.didChangeAppLifecycleState(state);
      if (state == AppLifecycleState.paused) {
        print("Video Player AppLifecycleState Paused");
        if (_controller != null) {
         _controller.pause().then((_) {});
        }
      }
  }
  </code></pre>
  
  <p>so,help me out to slove this issue.</p>
  
  <p>Thanks in advance.</p>