|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Player
Represents a Player object. It can be added to the Communication
object. Application can play an audio using this class.
Communication| Method Summary | |
|---|---|
URI[] |
getStreams()
A method to retrieve the streams currently being played by the player. |
void |
start(String... streams)
Start playing from the specified location. |
void |
start(URI... streams)
Start playing using the specified URI list. |
void |
stop()
Stop the playback. |
| Methods inherited from interface org.glassfish.cafe.api.Participant |
|---|
addAgent, getAgent, getAgents, getJoinable, getName, getNickName, removeAgent, setName, setNickName |
| Method Detail |
|---|
void start(URI... streams)
streams - List of URIs to be played.void start(String... streams)
start(URI.create(stream));
The location should be a form acceptable to URI.create. For example, to
record to a file, the invocation shall be.
Communication c = ...;
Player p = c.getMediaParticipant(Player.class, "player-1");
p.start("file:///tmp/music.au");
streams - List of streams that can be played.void stop()
URI[] getStreams()
start() hasn't been called, then this method will
return null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||