Page 1 of 1

[JVLC] Creating MediaPlayer by rtsp-Stream

Posted: 10 Oct 2008 16:55
by wollnyst
So JVLC is much trickier then I thougt...


Whatever, whats my mistake?

I want to display a rtsp-Stream in a Canvas, manipulate, take Snapshots and record it.

If I use a Playlist it works

Code: Select all

jvlc.setVideoOutput(V_mainFrame.c_video); try { playlist.add("rtsp://169.254.239.208/mpeg4/media.amp", "Playing"); playlist.play(); } catch (VLCException e) { // TODO Auto-generated catch block e.printStackTrace(); }

But If I'm not totally wrong, I need a MediaPlayer instance for capturing, taking snapshots etc.

So I thougt:

Code: Select all

MediaDescriptor mdist = new MediaDescriptor(jvlc, "rtsp://169.254.239.208/mpeg4/media.amp"); MediaPlayer mediaInstance = mdist.getMediaPlayer(); mediaInstance.play();
nothing happend, no video, no picture, nothing, whats wrong?




edit: solved it....


Cheers,
Stefan