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#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#getControl(String)}. Delegates to the * wrapped <tt>DataSource</tt>. Overrides * {@link CaptureDeviceDelegatePullBufferDataSource#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#getControl(String)}. Delegates to the actual * output of the transcoding. * * @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 this instance * with the specified type if such a control is available; otherwise, * <tt>null</tt> */ @Override public synchronized Object getControl(String controlType) { /* * The Javadoc of DataSource#getControl(String) says it's an error to * call the method without being connected and by that time we should * have the outputDataSource. */ return outputDataSource.getControl(controlType); }
/** * Implements {@link DataSource#getControl(String)}. Delegates to the * wrapped <tt>CaptureDevice</tt> if it implements <tt>DataSource</tt>; * otherwise, returns <tt>null</tt>. * * @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>CaptureDevice</tt> if it * implements <tt>DataSource</tt>; otherwise, <tt>null</tt> */ @Override public Object getControl(String controlType) { if (captureDevice instanceof DataSource) return ((DataSource) captureDevice).getControl(controlType); return null; }
/** * Implements {@link DataSource#getControl(String)}. Delegates to the * wrapped <tt>CaptureDevice</tt> if it implements <tt>DataSource</tt>; * otherwise, returns <tt>null</tt>. * * @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>CaptureDevice</tt> if it * implements <tt>DataSource</tt>; otherwise, <tt>null</tt> */ @Override public Object getControl(String controlType) { if (captureDevice instanceof DataSource) return ((DataSource) captureDevice).getControl(controlType); return null; }
/** * Gets the control available for the effective input <tt>DataSource</tt> * described by this instance with a specific type. * * @param controlType a <tt>String</tt> value which specifies the type of * the control to be retrieved * @return an <tt>Object</tt> which represents the control available for the * effective input <tt>DataSource</tt> described by this instance with the * specified <tt>controlType</tt> if such a control exists; otherwise, * <tt>null</tt> */ public synchronized Object getControl(String controlType) { DataSource effectiveInDataSource = getEffectiveInDataSource(); return (effectiveInDataSource == null) ? null : effectiveInDataSource.getControl(controlType); }
/** * Gets the <tt>Format</tt> in which a specific <tt>DataSource</tt> * provides stream data. * * @param dataSource the <tt>DataSource</tt> for which the <tt>Format</tt> * in which it provides stream data is to be determined * @return the <tt>Format</tt> in which the specified <tt>dataSource</tt> * provides stream data if it was determined; otherwise, <tt>null</tt> */ private static Format getFormat(DataSource dataSource) { FormatControl formatControl = (FormatControl) dataSource.getControl(FormatControl.class.getName()); return (formatControl == null) ? null : formatControl.getFormat(); }
captureDevice.getControl(BufferControl.class.getName());
effectiveInDataSource.getControl(bufferControlType); = (BufferControl) inDataSource.getControl(bufferControlType);
captureDevice.getControl(FormatControl.class.getName());
RTPControl ctl = (RTPControl) ds.getControl("javax.jmf.rtp.RTPControl"); if (ctl != null) { LOGGER.severe(" - Recevied 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)
= captureDevice.getControl(ImgStreamingControl.class.getName());
&& (captureDevice.getControl( ImgStreamingControl.class.getName()) != null))
captureDevice.getControl( FormatControl.class.getName());
effectiveInDataSource.getControl(formatControlType);
= (captureDevice.getControl( ImgStreamingControl.class.getName()) == null);
getCaptureDevice().getControl( FrameRateControl.class.getName());
captureDevice.getControl(FrameRateControl.class.getName());
RTPControl ctl = (RTPControl) ds.getControl("javax.jmf.rtp.RTPControl"); if (ctl != null) { LOGGER.error(" - Recevied new RTP stream: " + ctl.getFormat()); DataSource ds = stream.getDataSource(); RTPControl ctl = (RTPControl) ds.getControl("javax.jmf.rtp.RTPControl"); LOGGER.error(" - The previously unidentified stream "); if (ctl != null)