Package | Description |
---|---|
javax.microedition.media |
[OPTIONAL] Features for Audio support on embedded Devices.
|
Modifier and Type | Method and Description |
---|---|
static Player |
Manager.createPlayer(java.io.InputStream stream,
java.lang.String type)
Create a
Player to play back media from an InputStream . |
static Player |
Manager.createPlayer(java.lang.String locator)
Create a
Player from an input locator. |
static void |
Manager.playTone(int note,
int duration,
int volume)
Play back a tone as specified by a note and its duration.
|
void |
Player.prefetch()
Acquires the scarce and exclusive resources and processes as much data as
necessary to reduce the start latency.
|
void |
Player.realize()
Constructs portions of the
Player without acquiring the
scarce and exclusive resources. |
long |
Player.setMediaTime(long now)
Sets the
Player 's media time. |
void |
Player.setTimeBase(TimeBase master)
Sets the
TimeBase for this Player . |
void |
Player.start()
Starts the
Player as soon as possible. |
void |
Player.stop()
Stops the
Playe r. |
Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.