Methods Summary |
---|
public void | connect()
// System.err.println("SunVideoDataSource.connect()");
if (connected)
return;
if (sourceStream == null) {
sourceStream = new SunVideoSourceStream(this);
streams = new PushBufferStream[1];
streams[0] = sourceStream;
}
sourceStream.connect();
connected = true;
// TODO
// super.connect();
|
public void | disconnect()
// System.err.println("SunVideoDataSource.disconnect()");
// TODO
sourceStream.disconnect();
connected = false;
// super.disconnect();
|
public javax.media.CaptureDeviceInfo | getCaptureDeviceInfo()
// System.err.println("SunVideoDataSource.getFormatControls()");
if (sourceStream == null) {
sourceStream = new SunVideoSourceStream(this);
streams = new PushBufferStream[1];
streams[0] = sourceStream;
}
return sourceStream.getCaptureDeviceInfo();
|
public java.lang.String | getContentType()
// System.err.println("SunVideoDataSource.getContentType() ");
return contentType;
|
public java.lang.Object | getControl(java.lang.String name)
// System.err.println("SunVideoDataSource.getControl()");
if (sourceStream != null)
return sourceStream.getControl(name);
return null;
|
public java.lang.Object[] | getControls()
// System.err.println("SunVideoDataSource.getControls()");
if (sourceStream != null)
return sourceStream.getControls();
return null;
|
public javax.media.Time | getDuration()
// System.err.println("SunVideoDataSource.getDuration()");
return duration;
|
public javax.media.control.FormatControl[] | getFormatControls()
// System.err.println("SunVideoDataSource.getFormatControls()");
if (sourceStream == null) {
sourceStream = new SunVideoSourceStream(this);
streams = new PushBufferStream[1];
streams[0] = sourceStream;
}
FormatControl[] fc = new FormatControl[1];
fc[0] = (FormatControl)sourceStream.getControl(
"javax.media.control.FormatControl");
return fc;
|
public javax.media.protocol.RateConfiguration[] | getRateConfigurations()Methods for the RateConfigurable interface.
RateConfiguration config [] = { new OneRateConfig() };
return config;
|
boolean | getStarted()
// System.err.println("SunVideoDataSource.getStarted()");
return started;
|
public javax.media.protocol.PushBufferStream[] | getStreams()
// System.err.println("SunVideoDataSource.getStreams()");
if (!connected) {
System.err.println(
"DataSource needs to be connected before calling getStreams");
return null;
}
return streams;
|
public javax.media.protocol.RateConfiguration | setRateConfiguration(javax.media.protocol.RateConfiguration config)
return config;
|
public void | start()
// System.err.println("SunVideoDataSource.start()");
if (started)
return;
sourceStream.start();
started = true;
// super.start();
|
public void | stop()
// System.err.println("SunVideoDataSource.stop()");
if (!started)
return;
sourceStream.stop();
started = false;
// super.stop();
|