This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Java in General and the fly likes working with JMF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "working with JMF" Watch "working with JMF" New topic

working with JMF

Hari priya
Ranch Hand

Joined: Mar 11, 2004
Posts: 134
Hi -
I am trying to build an application which can ftp and play audio/video files. I am using a FTPClient library which has a method
boolean retrieveFile(java.lang.String remote, local) which retrieves a named file from the server and writes it to the given OutputStream.
I am using JMF to play files. However, I am unable to figure out how to play the file. But I can play files on the localhost using a method
new MediaPlayer().setMediaLocation("file-path");
Can anyone please let me know the way to get file from link the output stream and play it in the player?
Harish Kashyap
Ranch Hand

Joined: Jun 14, 2000
Posts: 118
Make use of DataSource class

or another way is write the file in some temp location locally and play it.
I agree. Here's the link:
subject: working with JMF
It's not a secret anymore!