• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

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

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)........
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am stuck at same point that you have mentioned. I dont know how to superimpose swing on JMF
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 22504
122
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Kartik Raina
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Marshal
Posts: 74342
334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And welcome to the Ranch , Kartik Raina
 
Kartik Raina
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Marshal
Posts: 74342
334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Kartik Raina wrote: . . . today is Friday not Tuesday.....

Maybe it was a joke . . .
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic