FileDocCategorySizeDatePackage
MergingCDPushBDS.javaAPI DocJMF 2.1.1e1325Mon May 12 12:21:04 BST 2003com.ibm.media.protocol

MergingCDPushBDS

public class MergingCDPushBDS extends MergingPushBufferDataSource implements CaptureDevice

Fields Summary
FormatControl[]
fcontrols
Constructors Summary
public MergingCDPushBDS(PushBufferDataSource[] sources)

    
       
	super(sources);
	consolidateFormatControls(sources);
    
Methods Summary
protected voidconsolidateFormatControls(javax.media.protocol.PushBufferDataSource[] sources)

	Vector fcs = new Vector(1);
	for (int i = 0; i < sources.length; i++) {
	    if (sources[i] instanceof CaptureDevice) {
		CaptureDevice cd = (CaptureDevice) sources[i];
		FormatControl [] cdfcs = cd.getFormatControls();
		for (int j = 0; j < cdfcs.length; j++)
		    fcs.addElement(cdfcs[j]);
	    }
	}
	if (fcs.size() > 0) {
	    fcontrols = new FormatControl[fcs.size()];
	    for (int f = 0; f < fcs.size(); f++)
		fcontrols[f] = (FormatControl) fcs.elementAt(f);
	} else {
	    fcontrols = new FormatControl[0];
	}
    
public javax.media.CaptureDeviceInfogetCaptureDeviceInfo()

	return null;
    
public javax.media.control.FormatControl[]getFormatControls()

	return fcontrols;