RTPControl ctl = (RTPControl) ds.getControl("javax.jmf.rtp.RTPControl"); if (ctl != null) { LOGGER.severe(" - Received new RTP stream: " + ctl.getFormat()); DataSource ds = stream.getDataSource(); RTPControl ctl = (RTPControl) ds.getControl("javax.jmf.rtp.RTPControl"); LOGGER.severe(" - The previously unidentified stream "); if (ctl != null)
/** * Implements {@link DataSource#connect()}. Delegates to the wrapped * <tt>DataSource</tt>. Overrides * {@link CaptureDeviceDelegatePullBufferDataSource#connect()} because the * wrapped <tt>DataSource</tt> may not be a <tt>CaptureDevice</tt> yet it * still needs to be connected. * * @throws IOException if the wrapped <tt>DataSource</tt> throws such an * exception */ @Override public void connect() throws IOException { dataSource.connect(); }
/** * Implements {@link DataSource#disconnect()}. Delegates to the wrapped * <tt>DataSource</tt>. Overrides * {@link CaptureDeviceDelegatePushBufferDataSource#disconnect()} because * the wrapped <tt>DataSource</tt> may not be a <tt>CaptureDevice</tt> yet * it still needs to be disconnected. */ @Override public void disconnect() { dataSource.disconnect(); }
MediaLocator locator = captureDevice.getLocator(); String protocol = (locator == null) ? null : locator.getProtocol(); float frameRate; captureDevice.getControl(FrameRateControl.class.getName());
captureDevice.stop(); captureDevice.disconnect(); captureDeviceIsConnected = false;
dataSource.connect(); try dataSource.disconnect();
/** * Gets the duration of each one of the output streams produced by this * <tt>AudioMixer</tt>. * * @return the duration of each one of the output streams produced by this * <tt>AudioMixer</tt> */ Time getDuration() { return ((DataSource) captureDevice).getDuration(); }
/** * Implements {@link DataSource#getLocator()}. Delegates to the wrapped * <tt>DataSource</tt>. * * @return a <tt>MediaLocator</tt> value which describes the locator of the * wrapped <tt>DataSource</tt> */ @Override public MediaLocator getLocator() { return dataSource.getLocator(); }
/** * Implements {@link DataSource#getContentType()}. Delegates to the wrapped * <tt>DataSource</tt>. Overrides * {@link CaptureDeviceDelegatePullBufferDataSource#getContentType()} * because the wrapped <tt>DataSource</tt> may not be a * <tt>CaptureDevice</tt> yet it still needs to report the content type. * * @return a <tt>String</tt> value which describes the content type of the * wrapped <tt>DataSource</tt> */ @Override public String getContentType() { return dataSource.getContentType(); }
/** * Implements {@link DataSource#getControls()}. Delegates to the wrapped * <tt>PushBufferDataSource</tt>. Overrides * {@link CaptureDeviceDelegatePushBufferDataSource#getControls()} because * the wrapped <tt>DataSource</tt> may not be a <tt>CaptureDevice</tt> yet * it still needs to give access to the controls. * * @return an array of <tt>Objects</tt> which represent the controls of the * wrapped <tt>DataSource</tt> */ @Override public Object[] getControls() { return dataSource.getControls(); }
dataSource.connect(); videoContainer, player); videoContainer.addHierarchyListener(listener); final MediaLocator locator = dataSource.getLocator();
dataSource.stop(); dataSource.disconnect();
/** * Implements {@link DataSource#getDuration()}. Delegates to the wrapped * <tt>DataSource</tt>. Overrides * {@link CaptureDeviceDelegatePushBufferDataSource#getDuration()} because * the wrapped <tt>DataSource</tt> may not be a <tt>CaptureDevice</tt> yet * it still needs to report the duration. * * @return the duration of the wrapped <tt>DataSource</tt> */ @Override public Time getDuration() { return dataSource.getDuration(); }
/** * Implements {@link DataSource#getLocator()}. Delegates to the wrapped * <tt>DataSource</tt>. * * @return a <tt>MediaLocator</tt> value which describes the locator of the * wrapped <tt>DataSource</tt> */ @Override public MediaLocator getLocator() { return dataSource.getLocator(); }
/** * Implements {@link DataSource#getContentType()}. Delegates to the actual * output of the transcoding. * * @return a <tt>String</tt> value which describes the type of the content * made available by this <tt>DataSource</tt> */ @Override public synchronized String getContentType() { return (outputDataSource == null) ? null : outputDataSource.getContentType(); }
/** * Implements {@link DataSource#getControls()}. Delegates to the actual * output of the transcoding. * * @return an array of <tt>Object</tt>s which represent the controls * available for this instance */ @Override public synchronized Object[] getControls() { return (outputDataSource == null) ? ControlsAdapter.EMPTY_CONTROLS : outputDataSource.getControls(); }
/** * Implements {@link DataSource#getControl(String)}. Delegates to the * wrapped <tt>DataSource</tt>. Overrides * {@link CaptureDeviceDelegatePushBufferDataSource#getControl(String)} * because the wrapped <tt>DataSource</tt> may not be a * <tt>CaptureDevice</tt> yet it still needs to give access to the control. * * @param controlType a <tt>String</tt> value which names the type of the * control to be retrieved * @return an <tt>Object</tt> which represents the control of the requested * <tt>controlType</tt> of the wrapped <tt>DataSource</tt> */ @Override public Object getControl(String controlType) { return dataSource.getControl(controlType); }
/** * Implements {@link DataSource#connect()}. Delegates to the wrapped * <tt>DataSource</tt>. Overrides * {@link CaptureDeviceDelegatePushBufferDataSource#connect()} because the * wrapped <tt>DataSource</tt> may not be a <tt>CaptureDevice</tt> yet it * still needs to be connected. * * @throws IOException if the wrapped <tt>DataSource</tt> throws such an * exception */ @Override public void connect() throws IOException { dataSource.connect(); }
/** * Implements {@link DataSource#disconnect()}. Delegates to the wrapped * <tt>DataSource</tt>. Overrides * {@link CaptureDeviceDelegatePullBufferDataSource#disconnect()} because * the wrapped <tt>DataSource</tt> may not be a <tt>CaptureDevice</tt> yet * it still needs to be disconnected. */ @Override public void disconnect() { dataSource.disconnect(); }