aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How To Develop A Designer Media Player For Java Swing Application???? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How To Develop A Designer Media Player For Java Swing Application????" Watch "How To Develop A Designer Media Player For Java Swing Application????" New topic
Author

How To Develop A Designer Media Player For Java Swing Application????

Kartik Raina
Greenhorn

Joined: Sep 16, 2010
Posts: 10
I am developing a java Swing application in which there will be small designer media player (Somewhat like flash based media player on browsers). I tried JMF but the media player which they are providing does not have that looks. So i tried to find something in javaFx, i found a media player but i dont know how to call an FX application into javaSwings. I also tried to get a flash based media player but again not mush of use.

So my main question is "Can any one tell me which side should i go???" I know there are several solution but i only wish to get only the Feasible one. Please also provide some SOURCE of your suggestion/answer (URL link/Source Code)........
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
JMF provides all the functionality you'd need for media access and playback. You just need to put a Swing GUI on top of it. At which point, exactly, are you stuck?
Kartik Raina
Greenhorn

Joined: Sep 16, 2010
Posts: 10
I am stuck at same point that you have mentioned. I dont know how to superimpose swing on JMF
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
I think JMF comes with an AWT component that you can embed in your application ... yep, a quick search finds the javax.media.bean.playerbean.MediaPlayer class. If that is not to your tastes, then nothing stops you from writing your own component.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19792
    
  20

javax.media.Player has methods getControlPanelComponent() and getVisualComponent(). Both return a Component (or null if unavailable, e.g. an audio file has no visual component). Keep in mind though that these are most likely heavy-weight components, so they may (will?) cause problems with Swing menu items and such.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Kartik Raina
Greenhorn

Joined: Sep 16, 2010
Posts: 10
Lester Burnham wrote:I think JMF comes with an AWT component that you can embed in your application ... yep, a quick search finds the javax.media.bean.playerbean.MediaPlayer class. If that is not to your tastes, then nothing stops you from writing your own component.


Thanks Buddy
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40061
    
  28
And welcome to the Ranch , Kartik Raina
Kartik Raina
Greenhorn

Joined: Sep 16, 2010
Posts: 10
I am rally thankful to all of you for giving me such a response but i will be really happy if i could get a working code, an example etc...
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Generally I have better things to do than use Google for other people, but since today is Tuesday I'll make an exception. The second hit for "writing a media player with jmf" is this: http://www.informit.com/articles/article.aspx?p=21113&rll=1. Now you should be all set.
Kartik Raina
Greenhorn

Joined: Sep 16, 2010
Posts: 10
Lester Burnham wrote:Generally I have better things to do than use Google for other people, but since today is Tuesday I'll make an exception. The second hit for "writing a media player with jmf" is this: http://www.informit.com/articles/article.aspx?p=21113&rll=1. Now you should be all set.


I am really thankful for your input. Moreover today is Friday not Tuesday.....
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40061
    
  28
Kartik Raina wrote: . . . today is Friday not Tuesday.....
Maybe it was a joke . . .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How To Develop A Designer Media Player For Java Swing Application????