Пример #1
0
 public static MMC prime() {
   MMC instance = getInstance();
   synchronized (instanceLock) {
     instance.init();
   }
   return instance;
 }
Пример #2
0
 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;
     }
   }
 }
Пример #3
0
 public DShowSharedLiveMediaPlayer(String captureDeviceInputName) {
   cdi = MMC.getInstance().getCaptureDeviceInputNamed(captureDeviceInputName);
   currState = NO_STATE;
 }
Пример #4
0
 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());
 }