|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
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. |
Methods inherited from interface com.oracle.sft.api.MediaParticipant |
---|
stop |
Methods inherited from interface com.oracle.sft.api.Participant |
---|
addAgent, getAgent, getAgents, getExtension, 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");
In this way, r.start(uri) can be used only when involved media resource is reserved, such as, bean can call it in CommunicationEvent.ESTABLISHED or MEDIA_RESERVED or EARLY_MEDIA_RESERVED. Another simpler way is as like: Communication c = ...; UserParticipant party = c.getInitiator(); //All UserParticipant support this way, not limited to initiator. initiator.getRecorder().start(uri);
By this way, application can record media not only when involved media resource is reserved, but also when no media resource is prepared, such as in CommunicationEvent.Type.INITIALIZATION. In later situation, SFT will first reserve media resource then record media once resource is ready.stream
- The location of stream for recording.URI getStream()
start()
hasn't been called, then this method will return null.
|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2012 Oracle Corporation. All Rights Reserved.