Catch the UIAlertView message on error

iOS, iPad, iPhone, tvOS specific usage questions
linked
Blank Cone
Blank Cone
Posts: 41
Joined: 28 Nov 2014 09:12

Catch the UIAlertView message on error

Postby linked » 07 Aug 2015 17:34

Hi,

If i try to open a url and something goes wrong, i get a alert popup with "Your input can't be opened" and below "VLC is unable to open the MRL rtsp://.... check log for details".

I know the method below to catch a playing state but nothing about the error itself:

Code: Select all

- (void)mediaPlayerStateChanged:(NSNotification *)aNotification
The question is, how can i find the reason of the error and catch it with some code ?

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Catch the UIAlertView message on error

Postby fkuehne » 18 Aug 2015 20:44

Enable the debug log. If you use VLCKit 2.2.x, add @"-vvvv" to the media player init options. If you use VLCKit 3.x, set the debug level on the VLCLibrary object associated with your respective media player.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

linked
Blank Cone
Blank Cone
Posts: 41
Joined: 28 Nov 2014 09:12

Re: Catch the UIAlertView message on error

Postby linked » 23 Aug 2015 21:16

I have no problem to enable a verbose log and see the very explicit problem in this log.
What i need is to catch this error with a piece of code like:

Code: Select all

If(nastyErrorFromLog){ // do this }
I need it because the error i see is very common for my use and it will be amazing to catch this with code to auto solve the error by a fallback code.

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Catch the UIAlertView message on error

Postby fkuehne » 24 Aug 2015 10:26

Without revealing the error you have, there is nothing we can possibly suggest to help you.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

linked
Blank Cone
Blank Cone
Posts: 41
Joined: 28 Nov 2014 09:12

Re: Catch the UIAlertView message on error

Postby linked » 29 Aug 2015 01:01

It's a sort of custom answer by a ISP hardware:

Code: Select all

Received 186 new bytes of response data. Received a complete SETUP response: RTSP/1.0 453 Not Enough Bandwidth Cseq: 5 Server: xxxrtspd/1.2 xxxx RTSP server Public: DESCRIBE, OPTIONS, SETUP, TEARDOWN, PLAY, PAUSE xxxx-Error: 402 "server is busy" [00007f8723703fb8] live555 demux error: SETUP of'video/MP2T' failed 453 Not Enough Bandwidth [00007f8723703fb8] live555 demux debug: setup start: 0.000000 stop:0.000000 [00007f8723703fb8] live555 demux error: Nothing to play for rtsp://myurl [00007f8723703fb8] core demux debug: no access_demux modules matched [00007f8723472f18] core input debug: creating access 'rtsp' location='myurl', path='(null)' [00007f8723703fb8] core access debug: looking for access module matching "rtsp": 15 candidates [00007f8723703fb8] core access debug: no access modules matched [00007f8723472f18] core input error: open of `rtsp://myurl' failed
If i can catch the "Not Enough Bandwidth" or "server is busy" or any other piece of string in these lines, it would be nice.

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Catch the UIAlertView message on error

Postby fkuehne » 31 Aug 2015 11:22

OK, we don't have a feedback mechanism for the live555 access module. Sorry, to say, but patch welcome.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 11 guests