Methods Summary |
---|
public void | connect()
if (streams == null) {
streams = new PushBufferStream[1];
if (vfwStream == null)
vfwStream = new VFWSourceStream(getLocator());
streams[0] = vfwStream;
}
vfwStream.connect(null);
super.connect();
|
public void | disconnect()
vfwStream.disconnect();
super.disconnect();
|
public javax.media.CaptureDeviceInfo | getCaptureDeviceInfo()
if (vfwStream == null)
return null;
else
return vfwStream.getCaptureDeviceInfo();
|
public java.lang.Object | getControl(java.lang.String controlType)Return the control based on a control type for the PlugIn.
try {
Class cls = Class.forName(controlType);
Object cs[] = getControls();
for (int i = 0; i < cs.length; i++) {
if (cls.isInstance(cs[i]))
return cs[i];
}
return null;
} catch (Exception e) { // no such controlType or such control
return null;
}
|
public java.lang.Object[] | getControls()
if (vfwStream != null)
return vfwStream.getControls();
else
return new Control[0];
|
public javax.media.control.FormatControl[] | getFormatControls()
if (vfwStream == null)
return new FormatControl[0];
else
return new FormatControl[] {(FormatControl) vfwStream};
|
public javax.media.protocol.RateConfiguration[] | getRateConfigurations()Methods for the RateConfigurable interface.
RateConfiguration config [] = { new OneRateConfig() };
return config;
|
boolean | getStarted()
return started;
|
public javax.media.protocol.PushBufferStream[] | getStreams()
if (streams == null)
System.err.println("DataSource needs to be connected before calling getStreams");
return streams;
|
public void | setLocator(javax.media.MediaLocator loc)
super.setLocator(loc);
if (vfwStream == null) {
vfwStream = new VFWSourceStream(getLocator());
}
|
public javax.media.protocol.RateConfiguration | setRateConfiguration(javax.media.protocol.RateConfiguration config)
return config;
|
public void | start()
vfwStream.start();
super.start();
|
public void | stop()
vfwStream.stop();
super.stop();
|