mrmaffen / vlc-android-sdk

VLC Android SDK pushed to Maven Central. Primarily used in project tomahawk-android.
793 stars 244 forks source link

How to catch libvlc exception in android application? #95

Open sagar1351 opened 6 years ago

sagar1351 commented 6 years ago

Dear admin,I got http stream properly but how did i catch the libvlc exception so i show the dialog, if stream url is not working.

JohanJarvi commented 6 years ago

An example of this is what I have:

catch (Exception e) { Toast.makeText(this, "Error creating player!", Toast.LENGTH_LONG).show(); }

You could edit this to be used where you want, for instance, if you can't open the stream you can use a similar exception and toast to the screen.

alpertayfun commented 3 years ago

I did not get any expention like that. Is there any different logic for that ?

I just need to exept " libvlc input: VLC is unable to open the MRL ".