I am playing network streams in my VLCJ application. Sometimes network connections are lost and I want to know this moments in my VLCJ application. I tried Error event but it is not fired. It is only fired when there is no network connection and I try to play a stream. When network is gone, last frame of video is freezed and nothing else is happened. How can I detect that video playing is stopped due to network connection lost?
There is no LibVLC API to detect that condition, and so there is no way to do it with vlcj either.
You could conceivably capture the native log and parse it looking for those errors, but that's a really poor approach frankly.