[vlc-devel] JVLC MediaPlayer question...

Tony Anecito adanecito at yahoo.com
Tue Jan 6 07:50:21 CET 2009


Hi JVLC Team,

Simple question. Where is the isPlaying() call for MediaPlayer? Is it no longer needed for the MediaPlayer? The MediaListPlayer has it which is why I am asking. So if I call stop and there is not video playing but was added to a MediaPlayer object I should not get unexpected results (like jre crash)?

I am not using MediaListPlayer because it seems to me it is missing method calls I am using now like getPosition and setPosition for example.

Also, interesting enough the JVLCCanvas is no longer in the api. The reason that was important is because when the JInternalFrame was closing that had a canvas or when the z-order changed the jvm called addNotify and removeNotify before destroying the heavyweight canvas and you needed to stop the video and destroy the jvlc instance then recreate it when addNotify was called. A real pain to put in work arounds but possible. I hope this is not an issue when java 6U12 is released.

Just thought you should know. Interesting enough is Sun mentioned something about destroying the video instance before starting a new video up. Funny how you have to the same thing with JVLC. Defeats the purpose of a playlist. Hopefully destroy JVLC instance is not needed anymore when wanting to play a new video.

Got some relearning to do I guess with the new api changes.

Thanks,
-Tony


      



More information about the vlc-devel mailing list