Error with player

I use TaifunPlayer in a player code and i'm in trouble. I don't know if the problem is due to Taifun extension, or in my code or other...

sometime i get an error.
so i prepared a log file to understand what happen and i got those informations:

component : com.puravidaapps.TaifunPlayer@12f6a98
function name :
Source :
message : Unable to grant exclusive lock of audio output stream to myAudioFile

I can have this error with few files one after an other, and after few times it works again...
I don't kwon what means "Unable to grant exclusive lock of audio output stream"
I chaecked the audiofile but it is ok and sometimes i can read it with my app...

is someone understand this ?
(i didn't post picture of my my code because it have lots off blocks...

Do you download your audio files from somewhere before playing them?

Taifun

no they are in a directory

ok. thanks Anke, you have found where this message come from, it seems it's from AI...
but then, what is the problem ? and what must i do to precise it and correct it ?

Sone more questions:
Do you use only one TaifunPlayer component?
Are there any other audio player components or extensions used in your project?
Do you use several screens?
Are you trying to access the same audio file from different screens or different players or another app?

Taifun

no only one

no i use my extension mpTags but it's not a player

just one in the start of my app but most of time it directly goes to the screen where the player is used

no

Can you say more about the purpose of that extension? What happens, if as a test you disable it? Do you still get the issue?

Taifun

This extension read mp3 file in orer to get informations in it (Artist, title ....)

it's difficult to say because my app can read decades of files before i get this error...and then i get it for several files before it have no error.

just now, i tried if i catch the error to stop play and switch to an other file (before i start playing a new file without stopping )

There may be a problem with these files. Try rendering them again.

it might be, that your extension is reading the file and and at the same time the player extension tries to play it?

Taifun

of course it was my first idea so i checked those files.and i can play it without problem !

perhaps, it's an idea, but why only very few times ?

Does this also happen on other test devices? If so, or if you don't have one, post the AIA or send it to me via PM.

On which device and which Android version does the issue occur?

this app works on an Android car radio and i don't know it's version
https://fr.aliexpress.com/item/1005006161852196.html?spm=a2g0o.order_list.order_list_main.91.517f5e5b7a5JPM&gatewayAdapt=glo2fra

i send you AIA

Android 13:

I took a look at your aia and see this:

grafik

AFAIK, there is no version 2 and also no version from 20-11-03 (@Taifun ?):

Many of your blocks don't work on Android > 10, for exable this:

and on Android 13 you must ask for READ_MEDIA_AUDIO permission to get access to audio files (to list audio files) in the external storage.

it's a version Taifun made for me with 2 volumes (rigth and left)

i don't understand because it works: I can see EnCours.txt in emulated/0/ !!

same : i succed to read audio files and i can list them !

actually, all my app works but this error coming from time to time (maybe once a week )...

Then the app is running on an Android device with Android < 11.

i don't know...i will try to check wich android version is used...

according to
component_set_get
Android version is 12

On Android 12 there is no WRITE permission and you cannot save a media or a non-media File (.txt) in the root dir of the external storage.