Well, I would like whatever makes JVLC work..haha. Anyway, my problems are related to MediaListPlayer, not to MediaPlayer nor MediaDescriptor (AFAIK). Did you rewrote MediaListPlayer class as well? I suppose that what you have done is to rewrite the JVLC classes that didn't work for you using other JVLC objects and your own structures to manage it, haven't you? Could you please tell me a little more about what you have really done to get it working?I managed to get it working - but you're not gonna like the solution!
I basically rewrote the entire JVLC MediaDescriptor and MediaPlayer classes. It's rather ugly, quite complicated, and involved. But no more crashes! (At least not so far).
If I can get approval to release my changes, I would be happy to do so.
Code: Select all
public void endReached(MediaPlayer mediaPlayer) {
System.out.println("End reached");
int currentItem = mediaList.indexOf(currentMediaDescriptor);
if ( currentItem < mediaList.size() - 1 ) {
setMedia(mediaList.getMediaDescriptorAtIndex(currentItem + 1));
mediaPlayer.play();
}
}
public void setMedia (MediaDescriptor mediaDescriptor) {
mediaPlayer.setMedia(mediaDescriptor);
}
Code: Select all
End reached
LibVLC fatal error destroying mutex in thread 2928491408 at misc/events.c:151: 16
Error message: Device or resource busy at:
/usr/lib/libvlccore.so.0(vlc_pthread_fatal+0xb5)[0xb52a9675]
Code: Select all
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb5268184, pid=9745, tid=3039714192
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b23 mixed mode, sharing linux-x86)
# Problematic frame:
# C [libvlc.so+0xe184] libvlc_media_event_manager+0x4
...
dulceangustia,othon2000,
I've been trying to make JVLC work for a year and, with the latest jar file, it has been possible to use it, although as you can see in this and many other threads, there is an existing lack of programmers and support. The issues with JVLC crashes seem to be related with JNA "translations" from VLC native code to Java's JVLC. JVLC's methods only call libvlc (native code) through a JNA interface and some objects and methods fail (I experienced many problems with MediaListPlayer, deprecated Playlist and MediaPlayer classes). So, it depends on what you want to do with JVLC in your application if you can carry on with JVLC's out-of-the-box capabilities or you need to reprogram or use the available classes. Then, maybe you don't need such telnet interface.
davidhoyt,
Did you take a look at my previous post about the SIGSEGV error when crashing JVLC?
Regards,
Javi
Return to “General VLC media player Troubleshooting”
Users browsing this forum: No registered users and 20 guests