Page 1 of 1

Catch the UIAlertView message on error

Posted: 07 Aug 2015 17:34
by linked
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 ?

Re: Catch the UIAlertView message on error

Posted: 18 Aug 2015 20:44
by fkuehne
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.

Re: Catch the UIAlertView message on error

Posted: 23 Aug 2015 21:16
by linked
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.

Re: Catch the UIAlertView message on error

Posted: 24 Aug 2015 10:26
by fkuehne
Without revealing the error you have, there is nothing we can possibly suggest to help you.

Re: Catch the UIAlertView message on error

Posted: 29 Aug 2015 01:01
by linked
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.

Re: Catch the UIAlertView message on error

Posted: 31 Aug 2015 11:22
by fkuehne
OK, we don't have a feedback mechanism for the live555 access module. Sorry, to say, but patch welcome.