/** * Updates the deviceUID based on the current locator. * * @return True if the deviceUID has been updated. False otherwise. */ private boolean updateDeviceUID() { MediaLocator locator = getLocator(); if(locator != null) { String remainder = locator.getRemainder(); if(remainder != null && remainder.length() > 1) { synchronized(startStopMutex) { this.deviceUID = remainder.substring(1); } return true; } } return false; }
/** * Returns the name of the sink this <tt>PulseAudioRenderer</tt> is * configured to connect {@link #stream} to. * * @return the name of the sink this <tt>PulseAudioRenderer</tt> is * configured to connect {@link #stream} to */ private String getLocatorDev() { MediaLocator locator = getLocator(); String locatorDev; if (locator == null) { locatorDev = null; } else { locatorDev = locator.getRemainder(); if ((locatorDev != null) && (locatorDev.length() <= 0)) locatorDev = null; } return locatorDev; }
/** * Returns the name of the PulseAudio source that this <tt>DataSource</tt> * is configured to input audio data from. * * @return the name of the PulseAudio source that this <tt>DataSource</tt> * is configured to input audio data from */ private String getLocatorDev() { MediaLocator locator = getLocator(); String locatorDev; if (locator == null) { locatorDev = null; } else { locatorDev = locator.getRemainder(); if ((locatorDev != null) && (locatorDev.length() <= 0)) locatorDev = null; } return locatorDev; } }
locator.getProtocol())) String remainder = locator.getRemainder();
/** * 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; }
locator.getProtocol())) String remainder = locator.getRemainder();
/** * {@inheritDoc} * * Implements * {@link AbstractPushBufferCaptureDevice#createStream(int, FormatControl)}. */ @Override protected AudioSilenceStream createStream( int streamIndex, FormatControl formatControl) { return new AudioSilenceStream( this, formatControl, !NO_TRANSFER_DATA.equalsIgnoreCase( getLocator().getRemainder())); }
return null; String remainder = locator.getRemainder(); String split[] = remainder.split(","); int index
String id = locator.getRemainder();
String remainder = getLocator().getRemainder(); String split[] = remainder.split(","); int dispayIndex;
throw new IllegalStateException("locator.protocol"); String remainder = locator.getRemainder();
/** * 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); } }
/** * doConnect allows us to initialize the DataSource with information that * we couldn't have in the constructor, like the MediaLocator that give us * the path of the ivf file which give us information on the format */ public void doConnect() throws IOException { super.doConnect(); this.fileLocation = getLocator().getRemainder(); ivfHeader = new IVFHeader(this.fileLocation); this.SUPPORTED_FORMATS[0] = new VideoFormat( Constants.VP8, ivfHeader.getDimension(), Format.NOT_SPECIFIED, Format.byteArray, Format.NOT_SPECIFIED); }
/** * Initializes a new <tt>IVFStream</tt> instance which is to have a * specific <tt>FormatControl</tt> * * @param dataSource the <tt>DataSource</tt> which is creating the new * instance so that it becomes one of its <tt>streams</tt> * @param formatControl the <tt>FormatControl</tt> of the new instance which * is to specify the format in which it is to provide its media data */ IVFStream(DataSource dataSource, FormatControl formatControl) { super(dataSource, formatControl); this.ivfFileReader = new IVFFileReader( dataSource.getLocator().getRemainder()); //this.TIMEBASE = (int)(1000. / ((VideoFormat)getFormat()).getFrameRate()); IVFHeader header = ivfFileReader.getHeader(); this.TIMEBASE = 1000000000 * header.getTimeScale() / header.getFramerate(); }
int captureDeviceIndex = audioSystem.getIMMDeviceIndex( captureDevice.getLocator().getRemainder(), eCapture); int renderDeviceIndex = audioSystem.getIMMDeviceIndex( renderLocator.getRemainder(), eRender);
? -1 : audioSystem.getIMMDeviceIndex( newRenderDevice.getRemainder(), eRender);
String id = locator.getRemainder(); long iMMDevice = getIMMDevice(id);
String rtpdumpFilePath = dataSource.getLocator().getRemainder(); this.rtpFileReader = new RtpdumpFileReader(rtpdumpFilePath);