[Lazarus] PasLibVlc error handling?

Bo Berglund bo.berglund at gmail.com
Mon May 13 14:37:32 CEST 2019

Does anyone here know how to make PasLibVlc supply an error code or
error message when an error occurs?
I have implemented the event OnMediaPlayerEncounteredError in order to
check what is happening. So in this event handler I just display the
vlcPlayer.LastError and it is always an empty string...

I would like to know exactly what has happeden when trying to open a
media stream or file.

There are numerous possibilities like: non-existing target, http login
required, unsupported stream format etc.
What I have encountered is the login required error when the media
resides on a password protected directory on the webserver.

Anyone who has used PasLibVlc and solved the error handling?

Bo Berglund
Developer in Sweden

More information about the lazarus mailing list