With JMF I Can't Switch To Composite1 port.
The main problem is:
PortControler is not implemented!
Look here:
http://java.sun.com/products/java-media/jmf/2.1.1/issues.html
So If I do:
Vector deviceList = CaptureDeviceManager.getDeviceList(new RGBFormat());
if ( deviceList ==null || deviceList.size() == 0){
out("no capture device available");
return;
}
CaptureDeviceInfo cdi = (CaptureDeviceInfo)deviceList.firstElement();
DataSource ds = Manager.createDataSource(cdi.getLocator());
out("ds.getcontrols:"+Arrays.asList(ds.getControls()));
PortControl pc = (PortControl) ds.getControl("javax.media.control.PortControl");
//pc.setPorts(PortControl.COMPOSITE_VIDEO);
out(pc ==null ?"<null>" : pc.toString());
I will always get <null>!
How to implement PortControl?
I need this, because in JMStudio the window is black.
in xawtv or camstream I can see sth. from my camera: I just put video source to 'composite1'.
I want use java, not c++ or even c!!!
Thank you, Peter.
BTW: Is JMF still under development?
BTW2: camera: ccd sanyo, os: suse linux 10.0, java: jdk1.6

