Controlling Output Volume

I would like to know how we could control Volume using custom GUI. e.g. using a Slider or something...
[123 byte] By [meetsreekanth] at [2007-9-26 12:58:13]
# 1

I remember this from my mp3 player. no idea how it works with other types of media.

add a controller listener to your player when you receive it from the Manager class.

in this controller listener define the controllerUpdate method, in which if the event is instanceof RealizeCompleteEvent (I think), you can then retrieve the visual component from the player, for displaying on your gui, which include a volume slider and buttons. check out the jmf api for the exact methods.

hope this helps

Mr_Silly at 2007-7-2 12:44:26 > top of Java-index,Security,Cryptography...
# 2
oops! I've just re-read your message and realised you said CUSTOM gui. In this case, once the player is realized, you may retrieve the Gain Control (again, am not sure of the method name - read the A.P.I specification) to which you may apply a volume level programmatically
Mr_Silly at 2007-7-2 12:44:26 > top of Java-index,Security,Cryptography...