locator.getProtocol()))
locator.getProtocol()))
locator.getProtocol()))
/** * Gets the name of the Video for Linux Two API Specification device which * represents the media source of this <tt>DataSource</tt>. * * @return the name of the Video for Linux Two API Specification device * which represents the media source of this <tt>DataSource</tt> */ private String getDeviceName() { MediaLocator locator = getLocator(); return ((locator != null) && DeviceSystem.LOCATOR_PROTOCOL_VIDEO4LINUX2 .equalsIgnoreCase(locator.getProtocol())) ? locator.getRemainder() : null; }
/** * Gets the protocol of the <tt>MediaLocator</tt> of the * <tt>CaptureDeviceInfo</tt> represented by this instance. * * @return the protocol of the <tt>MediaLocator</tt> of the * <tt>CaptureDeviceInfo</tt> represented by this instance */ public String getCaptureDeviceInfoLocatorProtocol() { CaptureDeviceInfo cdi = getCaptureDeviceInfo(); if (cdi != null) { MediaLocator locator = cdi.getLocator(); if (locator != null) return locator.getProtocol(); } return null; }
locator.getProtocol())) return null;
String protocol = locator.getProtocol(); String cdi2Protocol = cdi2Locator.getProtocol();
|| device.getLocator().getProtocol().equals( audioSystem.getLocatorProtocol()))
if (!locator.getProtocol().equalsIgnoreCase( DeviceSystem.LOCATOR_PROTOCOL_DIRECTSHOW)) throw new IllegalStateException("locator.protocol");
/** * Sets the <tt>MediaLocator</tt> which specifies the media source of this * <tt>DataSource</tt>. * * @param locator the <tt>MediaLocator</tt> which specifies the media source * of this <tt>DataSource</tt> * @see javax.media.protocol.DataSource#setLocator(MediaLocator) */ @Override public void setLocator(MediaLocator locator) { super.setLocator(locator); locator = getLocator(); QTCaptureDevice device; if ((locator != null) && DeviceSystem.LOCATOR_PROTOCOL_QUICKTIME.equalsIgnoreCase( locator.getProtocol())) { String deviceUID = locator.getRemainder(); device = QTCaptureDevice.deviceWithUniqueID(deviceUID); } else device = null; setDevice(device); } }
= DeviceSystem.LOCATOR_PROTOCOL_IMGSTREAMING .equalsIgnoreCase( cdi.getLocator().getProtocol()) ? MediaUseCase.DESKTOP : MediaUseCase.CALL;
!= null) && !DeviceSystem.LOCATOR_PROTOCOL_IMGSTREAMING .equals(captureDeviceInfoLocator.getProtocol()))
String protocol = (locator == null) ? null : locator.getProtocol(); float frameRate; DeviceConfiguration deviceConfig
locator.getProtocol())) codecs = new Codec[] { scaler }; else