I am trying to play a video via HTTP. It sometimes plays fine, others I get the "Cannot play video" error but can immediately start playing it again. It seems it will display this error on the slightest hiccup, is there anyway to increse the tolerance so it can continue through instead of just dropping the 开发者_StackOverflow中文版download and popping up the error?
implement a OnErrorListener
for your application and set viewview.setOnErrorListener(classhere);
Then you can handle errors the way you want to.
精彩评论