[vlc-devel] Root cause found for major issue between java bindings and vlc code

Tony Anecito adanecito at yahoo.com
Sat Apr 28 05:07:14 CEST 2007


Okay,
   
  After spending a bit of time on it I found the root cause of being able to use vlc code and Java Bindings in a child windows in java (Jdesktop/JinternalFrames). So take for example two child windows one playing a video and the other a blank window. When switching focus from the child window playing the video to the one that has nothing in it back to the one playing the video the JRE destroys the window associated with the canvas drawing surface. In the vlc code the windows WM_DESTROY message is sent sent to the windows proc (DirectXEventProc() in events.c) associated with the window created using CreateWindowEx() in the DirectXCreateWindow() method of events.c.
   
  So now knowing what the jre will do I still would like the video to continue playing when I switch between child windows and back again or maybe pause when focus goes to another child window then play when focus centers back on the window that was paused.
   
  The quicktime for java api handles this use case as expected where as vlc kills the running video.
   
  Any ideas from the vlc team? This is a show stopper for me and probably others in running multiple videos at the same time or even multiple video windows where at least one is running and others paused.
   
  Regards,
  -Tony

       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070427/08af726f/attachment.html>


More information about the vlc-devel mailing list