|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.protocol.DataSource
javax.media.protocol.PullBufferDataSource
net.java.sip.communicator.impl.media.protocol.portaudio.DataSource
public class DataSource
Implements DataSource and CaptureDevice for PortAudio.
| Field Summary |
|---|
| Fields inherited from interface javax.media.Duration |
|---|
DURATION_UNBOUNDED, DURATION_UNKNOWN |
| Constructor Summary | |
|---|---|
DataSource()
|
|
| Method Summary | |
|---|---|
void |
connect()
Connect the datasource |
void |
disconnect()
Disconnect the datasource |
javax.media.CaptureDeviceInfo |
getCaptureDeviceInfo()
Gets the CaptureDeviceInfo that describes this CaptureDevice. |
static javax.media.Format |
getCaptureFormat()
Return the formats supported by the datasource. |
String |
getContentType()
Tell we are a raw datasource |
Object |
getControl(String controlType)
Return required control from the Control[] array if exists. |
Object[] |
getControls()
Gives control information to the caller |
javax.media.Time |
getDuration()
Gives to the caller the duration information of our stream Which is, obviously unknown. |
javax.media.control.FormatControl[] |
getFormatControls()
Gets an array of FormatControl instances each one of which can be used before connect() to get and set the capture
Format of each one of the capture streams. |
javax.media.protocol.PullBufferStream[] |
getStreams()
Returns an array of PullBufferStream containing all the streams i.e. |
void |
start()
Start the datasource and the underlying stream |
void |
stop()
Stop the datasource and it's underlying stream |
| Methods inherited from class javax.media.protocol.DataSource |
|---|
getLocator, initCheck, setLocator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSource()
| Method Detail |
|---|
public static javax.media.Format getCaptureFormat()
public void connect()
throws IOException
connect in interface javax.media.protocol.CaptureDeviceconnect in class javax.media.protocol.DataSourceIOException - if we cannot initialize portaudio.public void disconnect()
disconnect in interface javax.media.protocol.CaptureDevicedisconnect in class javax.media.protocol.DataSourcepublic javax.media.CaptureDeviceInfo getCaptureDeviceInfo()
getCaptureDeviceInfo in interface javax.media.protocol.CaptureDevicepublic String getContentType()
getContentType in class javax.media.protocol.DataSourcepublic Object getControl(String controlType)
getControl in interface javax.media.ControlsgetControl in class javax.media.protocol.DataSourcecontrolType - the control we are interested in.
public Object[] getControls()
getControls in interface javax.media.ControlsgetControls in class javax.media.protocol.DataSourcepublic javax.media.Time getDuration()
getDuration in interface javax.media.DurationgetDuration in class javax.media.protocol.DataSourcepublic javax.media.control.FormatControl[] getFormatControls()
connect() to get and set the capture
Format of each one of the capture streams.
getFormatControls in interface javax.media.protocol.CaptureDeviceconnect() to get and set the capture
Format of each one of the capture streamspublic javax.media.protocol.PullBufferStream[] getStreams()
getStreams in class javax.media.protocol.PullBufferDataSource
public void start()
throws IOException
start in interface javax.media.protocol.CaptureDevicestart in class javax.media.protocol.DataSourceIOException
public void stop()
throws IOException
stop in interface javax.media.protocol.CaptureDevicestop in class javax.media.protocol.DataSourceIOException
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||