This change fixes problem with playing video on some cheap or old devices, such as Samsung S4, J6, etc.
I tested on S4, and when I tried to play the video, I got a codec exception. Then I found that this problem occurs due to multiple instances of the same decoder. So I added this method, which tries to pick up another decoder when an exception occurs.
This change fixes problem with playing video on some cheap or old devices, such as Samsung S4, J6, etc.
I tested on S4, and when I tried to play the video, I got a codec exception. Then I found that this problem occurs due to multiple instances of the same decoder. So I added this method, which tries to pick up another decoder when an exception occurs.