Applet.play

Applet.play

Class Overview | Class Members | This Package | All Packages

Syntax 1
public void play( URL url )
Parameters
url
an absolute URL giving the location of the audio clip.
Description
Plays the audio clip at the specified absolute URL. Nothing happens if the audio clip cannot be found.



Syntax 2
public void play( URL url, String name )
Parameters
url
an absolute URL giving the base location of the audio clip.
name
the location of the audio clip, relative to the url argument.
Description
Plays the audio clip given the URL and a specifier that is relative to it. Nothing happens if the audio clip cannot be found.