public static MMC prime() { MMC instance = getInstance(); synchronized (instanceLock) { instance.init(); } return instance; }
public static CaptureDevice getCapDevObj(Object o) { if (o instanceof sage.vfs.MediaNode) o = ((sage.vfs.MediaNode) o).getDataObject(); if (o instanceof CaptureDevice) return (CaptureDevice) o; else if (o instanceof CaptureDeviceInput) return ((CaptureDeviceInput) o).getCaptureDevice(); else if (o == null) return null; else { CaptureDevice capDev = MMC.getInstance().getCaptureDeviceNamed(o.toString()); if (capDev != null) return capDev; else { CaptureDeviceInput capDevInput = MMC.getInstance().getCaptureDeviceInputNamed(o.toString()); if (capDevInput != null) return capDevInput.getCaptureDevice(); else return null; } } }
public DShowSharedLiveMediaPlayer(String captureDeviceInputName) { cdi = MMC.getInstance().getCaptureDeviceInputNamed(captureDeviceInputName); currState = NO_STATE; }
public static CaptureDeviceInput getCapDevInputObj(Object o) { if (o instanceof sage.vfs.MediaNode) o = ((sage.vfs.MediaNode) o).getDataObject(); if (o instanceof CaptureDeviceInput) return (CaptureDeviceInput) o; else if (o == null) return null; else return MMC.getInstance().getCaptureDeviceInputNamed(o.toString()); }