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?
2
There are 2 best solutions below
Related Questions in VLC
- Media player stops about every 5 minutes
- Type Error - libvlc_video_set_logo_string
- playing multiple videos with libvlcsharp on multiple monitors
- How can I integrate VLC in angular?
- How stream with gstreamer and open the stream on any computer
- How to extract video embedded subtitle from a video URL and show in a text widget in flutter?
- Python + VLC + RTSP - cannot take screenshot
- vlm config file for streaming dvb-s2 input over http with vlc
- python, vlc, rtsp. Screenshots doesn't work
- Persistent Unmanaged Memory Increase in LibVLCSharp During Long Video Playback
- VLC - python and GPIO - random fonction
- Winform VlcControl shows black screen
- Verifying an RTSP Stream [Andriod]
- VLC module for python, video not always start fullscreen
- Not able to play stream using easy_onvif for ONVIF camera
Related Questions in JNA
- When I use the jna method, the java call to c# keeps running with an error saying "java.lang.Error: Invalid memory access"
- java.io.IOException: To use Lanterna on Windows, either add JNA (and jna-platform) to the classpath (or use javaw)
- how to receive int array by pass a int pointer from java using JNA?
- There is an incompatible JNA native library installed on this system
- Converting BufferedImage to Pixmap
- Cannot load native library on Android: Native library not found in resource path
- How can I get name of currently running app (same as in task manager) with Java? (Windows)
- can I use JNI/JNA to work with libcrypto-3-x64.dll?
- How to do DllInject in Java and jna
- Why does the Java process memory still increase after calling memory.close?
- Testing native library with jna and junit: tests quit abruptly after exiting the library
- What causes a "java.lang.ClassNotFoundException: com.sun.jna.Callback" Error using maven javafx:jlink?
- How to make a proper description of Java JNA objects
- Reading and formatting events from Windows Event Log
- Java JNA get and pass native pointer
Related Questions in VLCJ
- vlcj: two videos same volume
- How can I know when a MediaDiscoverer has finished discovering media?
- How can I ensure the correct display of Japanese and other foreign characters obtained from the MetaApi get() method?
- How to display a VLCj EmbeddedMediaPlayerComponent on top of JPanel in Java?
- VLCJ Media Event Listener not Firing
- How to use VLCJ embedded media list player properly
- How can I play a video with vlcj in the background in JavaSwing?
- Properly setting VLCJ tonemapping
- Errors when playing rtsp video with vlcj library
- My repaint() isn't doing anything and I'm at a complete loss
- How to interpret java kernel traces
- Open RTP stream in JPanel using VlcJ
- How to run vlcj in a separate thread in background just to calculate the duration of the media file
- javafx vlcj video freezes after few seconds while audio keeps playing
- vlcj: change video surface wthout stopping MediaPlayer
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.