- Home /
 
 
               Question by 
               themalakarraja · Mar 26, 2019 at 03:29 PM · 
                mobile devices  
              
 
              Headphone play-pause button not working in 2018.3.6
I just upgrade my project from 5.6.3 to 2018.3.6. Headphone play-pause button was working pretty good in android and ios. After upgrade to 2018.3.6 it is not working.
 private void Update()
 {
     if (Input.GetKeyDown(KeyCode.F7))
     {
         if (_AudioSource.isPlaying)
         {
             _AudioSource.Pause();
             Debug.Log("Paused..");
         }
         else
         {
             _AudioSource.Play();
             Debug.Log("Playing..");
         }
     }
 }
 
              
               Comment
              
 
               
              Your answer