Video and other picture file extentions in Java?

Can a java program play video? If so, what is the package that includes those methods for playing videos? Also, can a java program display other kinds of picture compressions than .gif ,or can java convert other compressions like jpeg into the .gif format?thanks, vance
[283 byte] By [cell@techa] at [2007-10-3 7:50:00]
# 1

A java program can do anything just as long as you have to right API for the job. That is what you should focus on, not on the java language itself because Java is no more than that: a programming language. The standard SDK has no support for playback of video that I'm aware of, but there is always google to help you find a free/open source API that can do it.

The standard SDK does have the ImageIO class that can be used to load and save images, which gives you the capability to convert types. Gif, png and jpeg will all work out of the box (bmp will too if I'm not mistaken). Other than that there is the java advanced imaging API (JAI) that gives you the ability to transform images.

gimbal2a at 2007-7-15 2:51:50 > top of Java-index,Java Essentials,New To Java...
# 2
Once I used the Java Media Frameworks to capture screens from a webcam. I saw there a tutorial for a media player, too. Maybe this is what you are looking for.
Mongera at 2007-7-15 2:51:50 > top of Java-index,Java Essentials,New To Java...
# 3
Thanks for the great answers. Maybe I was not definite enough about my video question. What I want to know is if I could build a GUI that would allow a user to select a video on their computer and play it in the program. Thanks, Vance
cell@techa at 2007-7-15 2:51:50 > top of Java-index,Java Essentials,New To Java...
# 4

yes you could build that if you go and download the JMF (Java Media Framework). Unfortunatly, all your users will have to download it too because it is not part of J2SE. It will allow you to run many types of video as well as audio in both applets and applications. It does take a while to learn as well, however it is a sun API so it will be maintained, maybe even someday added to the J2SE (I hope). You can download it here...

http://java.sun.com/products/java-media/jmf/2.1.1/download.html

AsSiDuL0Usa at 2007-7-15 2:51:50 > top of Java-index,Java Essentials,New To Java...