How to play audio files on JFrames or JPanels. How to play video files on JFrames or JPanels. I am trying hard to figure it out.....but all my efforts are in vain..
So Experts please help.
~~yr[:_:]s~~
pete stein
Bartender
Joined: Feb 23, 2007
Posts: 1561
posted
0
No expert in this, but if I were wanting to do this, I'd first spend a lot of time with Google. What has it told you so far? What avenues have you explored?
Good luck
Milan Agrawal
Greenhorn
Joined: Sep 25, 2008
Posts: 8
posted
0
Hello,me Milan,a new member to this site.
I think that you need to have link with the dll files to make a audio player.
otherwise you can also search in google for the code.
In the future, please give your posts better subject lines - "JFrames" is rather misleading if you ask about audio/video playback. [ October 04, 2008: Message edited by: Ulf Dittmer ]
javax.media.Player has methods getControlPanelComponent and getVisualComponent for controlling and showing media files. I've been able to play a small movie in Java this way.
I do think that these controls are heavyweight controls, so mixing it with Swing (lightweight controls) may lead to some unexpected results.