org.mobicents.media.server.spi.resource
Interface Recorder

All Superinterfaces:
Component, MediaSink, java.io.Serializable

public interface Recorder
extends MediaSink

Author:
amit bhayani

Method Summary
 void setRecordDir(java.lang.String recordDir)
          Set the Record path.
 void setRecordFile(java.lang.String uri)
          Assign file for recording.
 
Methods inherited from interface org.mobicents.media.MediaSink
connect, connect, disconnect, disconnect, getBytesReceived, getFormats, getPacketsReceived, isConnected, isMultipleConnectionsAllowed, isStarted, receive, start, stop
 
Methods inherited from interface org.mobicents.media.Component
addListener, getConnection, getEndpoint, getFormat, getId, getInterface, getName, removeListener, resetStats, setConnection, setEndpoint
 

Method Detail

setRecordDir

void setRecordDir(java.lang.String recordDir)
Set the Record path. This will be the parent path and file path passed in start(String file) will be appended to this base record path. For example if recordDir = "/home/user/recordedfiles" (for Win OS c:/recordedfiles), then calling start("myapp/recordedFile.wav") will create recorded file /home/user/recordedfiles/myapp/recordedFile.wav (for win OS c:/recordedfiles/myapp/recordedFile.wav)

Parameters:
recordDir -

setRecordFile

void setRecordFile(java.lang.String uri)
                   throws java.io.IOException
Assign file for recording.

Parameters:
uri - the URI which points to a file.
Throws:
java.io.IOException
java.io.FileNotFoundException


Copyright © 2010. All Rights Reserved.