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!
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: