aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Rewind and Fast Forward button audio Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Rewind and Fast Forward button audio " Watch "Rewind and Fast Forward button audio " New topic
Author

Rewind and Fast Forward button audio

jack
Greenhorn

Joined: Dec 13, 2004
Posts: 3
Hi, I'm trying to modify code from sun, I'm trying to add a Fast Forward and a Rewind can anyone help
Code

[ UD: added code tags ]
[ January 24, 2006: Message edited by: Ulf Dittmer ]

zip
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42277
    
  64
Hello "zip zipeee"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Since yours does not conform with it, please take a moment to chnage it, which you can do right here.

Enjoy your time here.


Ping & DNS - my free Android networking tools app
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42277
    
  64
As regards your question, what is the problem you're facing in adding the two buttons? You have added them to the GUI, now you need to handle them in the actionPerformed method.

BTW, I've added CODE tags to your post. They maintain the formatting, making it much easier to read code. You'll find the "CODE" button underneath the input field when you post a message.
jack
Greenhorn

Joined: Dec 13, 2004
Posts: 3
Thanks for the information, I'm just not sure how to add the fast-forward and rewind functionality. Thanks Jack
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42277
    
  64
Hi Jack-

Thanks for changing your screen name. Unfortunately, it's still not what is required, which is a real(-sounding) first and last name. Please change it accordingly.

As to the applet, java.applet.AudioClip is based on com.sun.media.sound.JavaSoundAudioClip on recent JVMs. That does not support forward/backward out of the box (or even restarting at the point where it got stopped) either. There are hints (in the startImpl method) that it is principally possible to navigate to an arbitrary position in the playback, but unless you feel like mucking around with JDK-internal classes, I think you're out of luck.
[ January 25, 2006: Message edited by: Ulf Dittmer ]
 
wood burning stoves
 
subject: Rewind and Fast Forward button audio