Android Question Testing audio on Android

aberezhnykh

Member
Licensed User
Longtime User
Hello!

I use MediaplayerStream in my application. Very rarely the output of sound on Android stops working. Any files can not be played, including through other applications. Problem that my app at this moment becomes completely frozen. This happens upon initialization of a new instance MediaplayerStream. I am trying to use Try/Catch, but it's to no avail - this construction does not work. I want to find any way to test the sound device before initializing MediaplayerStream so I could forcibly restart the device (root). Can anyone give me advice on how to do this?

P. S. the Use of ExoPlayer does not freeze the application, but it not informs me that sound device not working.

In advance, thank you all!
 
Last edited:

aberezhnykh

Member
Licensed User
Longtime User
Yes. I need to solve this problem and restart the device. But I do not know how to solve this problem. I would like to run some test before initializing the library.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…