Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

to show a video on button click  RSS feed

 
gurappa jai
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in the action performed event on a button(on click),I need to show a existing video clip onto the GUI screen,can I directly specify the path of the existing clip within that method or should I need to do some processing on it?
 
Pavel Cherkashin
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know Swing or AWT does not support playing of media information. The solution is to refer to Java Media Framework API or any open source library You like. Be careful, some open source java libraries might not be compatible with OS, your product will run on (the graphic is hardware dependent issue). Also while selecting library pay an attention to format of the video.
 
gurappa jai
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pavel Cherkashin:
As far as I know Swing or AWT does not support playing of media information. The solution is to refer to Java Media Framework API or any open source library You like. Be careful, some open source java libraries might not be compatible with OS, your product will run on (the graphic is hardware dependent issue). Also while selecting library pay an attention to format of the video.


thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!