Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Re your native window: VLCj opens a shared instance to the VLC library.</p> <p><strong>A headless media palyer is NOT intended to have a video or audio output!</strong></p> <p>In fact, if you need anything to play (and not to stream to anywhere else) you need to create either an <em>output window</em> or use a <em>direct media player</em> (may be much more complicated) So, if a headless player needs to play something it opens a native window to perform the playback!</p> <p>Source: <a href="http://www.capricasoftware.co.uk/wiki/index.php?title=Vlcj_Media_Players" rel="nofollow">http://www.capricasoftware.co.uk/wiki/index.php?title=Vlcj_Media_Players</a></p> <p>Re the error: the <strong>video display component MUST be the top component</strong> of the panel, window or whereever it is added to. Otherwise it will throw the error </p> <blockquote> <p>main vout display error: Failed to set on top</p> </blockquote> <p>Furthermore, if you put anything over the component it will <strong>destroy the video output</strong> which won't work anymore!</p> <p>Anyway, I don't know how the DirectMediaPlayer works in detail but VLCj has some weird behaviour... Maybe <code>getSnapshot()</code> needs a video display component but I'm not sure.</p> <p>Re your not finishing program: you join to finish your own thread. This <strong>can't work</strong> because your thread "sleeps" until the other thread who is waited for has been terminated but as this is your own thread it "sleeps" and won't terminate. You can test this behaviour with this short code in a main method:</p> <pre><code>System.out.println("Test start"); Thread.currentThread().join(); System.out.println("Test stop"); </code></pre> <p>You will <strong>NEVER</strong> reach the "Test stop" statement.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload