|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Recorder
Represents a Recorder object. It can be added to the
Communication Application can record the conversation using ths
class.
Communication| Method Summary | |
|---|---|
URI |
getStream()
A method to retrieve the stream currently being recorded by the recorder. |
void |
start(String stream)
Start recording to the specified location. |
void |
start(URI stream)
Start recording to the specified URI. |
void |
stop()
Stop recording the communication. |
| Methods inherited from interface org.glassfish.cafe.api.Participant |
|---|
addAgent, getAgent, getAgents, getJoinable, getName, getNickName, removeAgent, setName, setNickName |
| Method Detail |
|---|
void start(URI stream)
stream - A URI object.void start(String stream)
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 = ...;
Recorder r = c.getMediaParticipant(Recorder.class, "recorder-1");
r.start("file:///tmp/recorded.au");
stream - The location of stream for recording.void stop()
URI getStream()
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 | |||||||||