Playing midi audio files on android

Hi im making a player api that needs to play .midi audio files. But im having problems because the audio api dont seen to be capable of playing this kind of file. The media.playSound can play .midi files nromally so i cant understand why the other cant. I tryed using media.playsound but it seens like media.stopSound() is not working on the android, just simulator. Any suggestions for this issue?

I know it is not supported by the audio api, but it works using the deprecated media.playsound. I just wanted to know a way to stop the sound since the media.stopSound and media.pausesound stopped working on android. Or if there is a way to make this new audio api work with this. Or any third party code that works with.

thanks in advance