I want to show 4 views that will stream video from the server. I created 4 views that broadcast the video, and I tested it on Nexus 7 (2013), it works great. But when I tested another device (Samsung Tab2), the video freezes after a few minutes, and some videos do not even start. This is because MediaPlayer receives an error message (100.0). I tried restarting MediaPlayer when MediaPlayer.OnErrorListener gets this error, but after restarting I get the same error. I have this problem even with 2 MediaPlayers, but if I have only one MediaPlayer, it works fine. As I understand it, my Samsung cannot work properly with multiple MediaPlayer. How can I find out how many media players will work with some device? Or maybe,someone is facing the same problem and can help me.
source
share