• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

working with JMF

 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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, java.io.OutputStream 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?
Thanks!
Radha
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Make use of DataSource class

or another way is write the file in some temp location locally and play it.
reply
    Bookmark Topic Watch Topic
  • New Topic