vlc-android-sdk icon indicating copy to clipboard operation
vlc-android-sdk copied to clipboard

How to catch libvlc exception in android application?

Open sagar1351 opened this issue 7 years ago • 2 comments

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.

sagar1351 avatar Aug 23 '17 09:08 sagar1351

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.

JohanJarvi avatar Nov 14 '17 22:11 JohanJarvi

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 ".

alpertayfun avatar Jan 07 '21 17:01 alpertayfun