Exoplayer about 10 or 15 minutes the application closes when the screen turns off

This problem is related to the doze mode of Android 6 and later
Please do and test what you said in this video carefully
لطفا کارهایی که توی این ویدیو گفته رو با دقت انجام بدید وتست کنید

Hi.
There already exist a topic about it.
Please search first. Thank you

Hi @bodymindpower,
Could you describe the problem better? With player component or @Taifun player extension the song go always in loop, if we use some chinese devices?

Thank you in advice.

PS: I’m asking about it because I want to switch from Exoplayer, and I want to know if the player component and taifun player works good.

I have posted on these questions several times, see e.g. here:

1 Like

See here from my 3rd link:

Note: The Player component does not loop seamlessly since Android 6. The TaifunPlayer does not loop gaplessly on specific Chinese devices (OnePlus, Xiaomi, …) anymore. (Finally I found the reason for this: these manufacturers fade out audio tracks with a length ≥ 30000ms for 165ms, which creates the gap.)

I wrote to OnePlus and explained this issue and we are still in discussion about it.

2 Likes

can you type me the code you use in set activity starter1 action because my app stop after streaming for 15 mins when using taifun and exoplayer. i really need help on this

Which device & Android version are you using?

Tecno camon 12 pro and andriod 9 version

Unfortunately, there seems to be no solution to the problem with some devices when streaming sounds. We have discussed this problem extensively in all AI forums. Not even deactivating battery optimization will bring long-term success.

okay, thanks. do you have idea how i can load my podcast to my app using my podcast rss.
can you also help on this when i press play button it takes 5 to 6 seconds before player starts streaming and i mistakenly press any button my app becomes not responding and the app close. what do you think i can do that when user press play the user wont have access to press anything until the app start playing

Which audio format do you use (mp3, ogg, m4a, flac, …)?

mp3 audio format

the site offers mp3 and aac, should i pick aac. the site only offers mp3 and aac audio format

No, mp3 should be the best format to have short buffer times. Maybe the internet connection is the problem.

should i reduce the buffer for streaming

give it a try, but I don’t think it will help

1 Like

okay thanks

Possible solution !