I am trying to make like my own music app. With my dependency service solution in iOS i can hear the mp3 just fine but once I navigate through other pages the file stops. So my question is, how can I make so the file keeps playing even if i navigate through different pages after i "play" it?

This is my code:
My button where I pick the "track".

```
async void PlayThisSongButton (object s, EventArgs e)
    {
        DependencyService.Get<IPlayerVoice>().PlayAudioFile("myfilename.mp3");
    }

```

Interface:

```
public interface IPlayerVoice
{
    void PlayAudioFile(string fileName);
}

```

Dependency service iOS:

```
[assembly: Xamarin.Forms.Dependency(typeof (VoicePlayer_iOS))]

namespace myProject.iOS
{
  public class VoicePlayer_iOS : IPlayerVoice
  {
    AVAudioPlayer player;

    public VoicePlayer_iOS()
    {
    }

    public void PlayAudioFile(string fileName)
    {
        string sFilePath = NSBundle.MainBundle.PathForResource
        (Path.GetFileNameWithoutExtension(fileName), Path.GetExtension(fileName));
        var url = NSUrl.FromString(sFilePath);
        var _player = AVAudioPlayer.FromUrl(url);
        _player.FinishedPlaying += (object sender, AVStatusEventArgs e) =>
        {
            _player = null;
        };
        _player.Play();
     }

   }
}

```

So with this current code. I click on my button where i start the audiofile. I then navigate to a different page. The audiofile stops. Any idea how i can solve this?