I am developing an app in which I am playing multiple videos at a time. Also performing some operations at same time.
Now I am successful in running 2 videos at a time using VideoView by having reference from here and here.
Both options are working fine for me. But my question is, is it safe to play 2 videos at a time on UI thread or shall I go with option creating threads and playing them separately or shall I use AsyncTask or is it safe to use UI thread directly?? And please tell me the difference of using all 3 approaches.
when you play a video it does decoding, buffering in background. It doesn't do this work on UI thread. You probably only need to call start() function on UI thread.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With