TaifunPlayer Run Time error

Hello,

I am getting a run time error when trying to play audio through TaifunPlayer. This is the error message: Attempt to invoke virtual method ‘void android.media.MediaPlayer.setAudioStreamType(int)’ on a null object reference

The source for the player I set to a directory in /storage/emulated/0/Documents/audioname-date-time.3gp which are audio files that have just been recorded through my app using sound recorder.

Any help would be appreciated, let me know if you need any more info.

Taifun player plays only MP3 files as I know and you are trying to play 3gp so you are getting error

1 Like

Do you know how I would play a sound recorder audio since it is saved as 3gp. I get the same issue if save the recording as an mp3, gives the same error. I have tried several players too.

I have just tested the file using the sound component and that plays the sound. Unfortunately i need events like when completed etc

Read this I think you would get some solution

Because when I used once the taifun player extension it worked fine for me

Thank you Asit for the help. I will be removing the sound recorder from my app since its not necessary and is giving me issues. Appreciate ya!

1 Like