i am using the c# wrapper for libvlc wich displays the media files in the player as required. I need to know how can i know when the end of a file has reached while playing. Additionally i too need to catch any error that occurs while playing the media file.