开发者

How to change behavior regarding "Cannot play video" error

开发者 https://www.devze.com 2023-02-10 06:53 出处:网络
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 sligh

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消