Fabien
Fabien

Reputation: 1987

android videoview - managing bad urls error?

Im using some time expiring url to watch a video from internet and so, when the expiration time come out, the video 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 ?

Upvotes: 0

Views: 627

Answers (1)

Fabien
Fabien

Reputation: 1987

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

that you can create. :)

Upvotes: 1

Related Questions