开发者

android videoview - managing bad urls error?

开发者 https://www.devze.com 2023-01-14 09:00 出处:网络
Im using some time expiring url to watch a video from internet and so, when the expiration time come out, the vi开发者_运维问答deo is not working anymore. In this case, im getting an error dialog box

Im using some time expiring url to watch a video from internet and so, when the expiration time come out, the vi开发者_运维问答deo is not working anymore. In this case, im getting an error dialog box from the videoplayer saying the video is unreadable. that is quite fine, but i would like to display my own dialog box text. how can i do ? is there any way i can know my video didnt work ? Any ideas ?


I found the answer my self reading a bit more the SDK. There is setOnErrorListener(android.media.MediaPlayer.OnErrorListener).

that you can create. :)

0

精彩评论

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