Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

How to create a media browser using java media framework?

I want to know how to create a media browser which have a directory that list all the directories on the specified disk, a directory content that list all the media files on the specified directory and a preview pane that play or show the specified media file once it has been selected in the directory content.Anyone know how to create it?
[340 byte] By [lks] at [2007-11-11 9:59:50]
# 1 Re: How to create a media browser using java media framework?
First look at the File class for retrieving lists of Files. Use a FileFilter to retrieve only the media types you want. I would organize the media into a JTree, organized by their type. In another pane you would show the preview. How to play the media depends on its particular type. If it's not natively supported in java, then you'll need to find 3rd party packages.

For playing MP3, OGG, and other audio file types, this website is an invaluable resource.
http://www.javazoom.net/index.shtml
Phaelax at 2007-11-11 22:32:09 >