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)
PushBufferStream[] pbss = pbds.getStreams();
ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW_RTP); processor.setContentDescriptor(cd);
public void transferData(PushSourceStream stream) { transferHandler.transferData( PushBufferStreamAdapter.this); } });
/** * 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 SourceStream#endOfStream(). Delegates to the wrapped * SourceStream. * * @return true if the stream is finished, false otherwise */ public boolean endOfStream() { return stream.endOfStream(); }
/** * Implements {@link Controls#getControls()}. Delegates to the wrapped * <tt>SourceStream</tt>. * * @return an array of <tt>Object</tt>s which represent the controls * available for the wrapped <tt>SourceStream</tt> */ public Object[] getControls() { return stream.getControls(); } }
@Override public synchronized void setTransferHandler( SourceTransferHandler transferHandler) { if (_transferHandler != transferHandler) { _transferHandler = transferHandler; for (PushSourceStreamDesc streamDesc : streams) streamDesc.stream.setTransferHandler(this); } }
/** * Implements {@link PushBufferStream#getFormat()}. Delegates to the wrapped * <tt>PushBufferStream</tt>. * * @return the <tt>Format</tt> of the media data available for reading in * this <tt>PushBufferStream</tt> */ public Format getFormat() { return stream.getFormat(); }
/** * Implements SourceStream#getContentDescriptor(). Delegates to the wrapped * SourceStream. * * @return the <tt>ContentDescriptor</tt> of the stream */ public ContentDescriptor getContentDescriptor() { return stream.getContentDescriptor(); }
/** * Implements {@link javax.media.Controls#getControls()}. Delegates to * the wrapped <tt>PushBufferStream</tt>. * * @return an array of <tt>Object</tt>s which represent the controls * available for the wrapped <tt>PushBufferStream</tt> */ @Override public Object[] getControls() { return stream.getControls(); }
/** * Implements {@link PullBufferStream#getFormat()}. Delegates to the * wrapped <tt>PullBufferStream</tt>. * * @return the <tt>Format</tt> of the wrapped <tt>PullBufferStream</tt> */ public Format getFormat() { return stream.getFormat(); }
/** * 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(); }
/** * Initializes a <tt>BasicWavMux</tt> instance. */ public BasicWavMux() { supportedInputs = new Format[] { SUPPORTED_INPUT_FORMAT }; supportedOutputs = new ContentDescriptor[1]; supportedOutputs[0] = new FileTypeDescriptor(FileTypeDescriptor.WAVE); }
/** * Implements SourceStream#getContentLength(). Delegates to the wrapped * SourceStream. * * @return content length */ public long getContentLength() { return stream.getContentLength(); }
/** * Implements {@link SourceStream#getContentDescriptor()}. Delegates to the * wrapped <tt>PushBufferStream</tt>. * * @return a <tt>ContentDescriptor</tt> which describes the type of the * content made available by the wrapped <tt>PushBufferStream</tt> */ public ContentDescriptor getContentDescriptor() { return stream.getContentDescriptor(); }
/** * Implements {@link PushBufferDataSource#getStreams()}. Delegates to the * wrapped <tt>DataSource</tt> of the <tt>ReceiveStream</tt>. * * @return an array of the <tt>PushBufferStream</tt>s of the wrapped * <tt>DataSource</tt> of the <tt>ReceiveStream</tt> */ @Override public PushBufferStream[] getStreams() { return dataSource.getStreams(); }
/** * 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 SourceStream#endOfStream()}. Delegates to the wrapped * <tt>SourceStream</tt>. * * @return <tt>true</tt> if the wrapped <tt>SourceStream</tt> has reached * the end the content it makes available */ public boolean endOfStream() { return stream.endOfStream(); }
/** * Implements Controls#getControls(). Delegates to the wrapped SourceStream. * * @return array of JMF <tt>Control</tt> objects */ public Object[] getControls() { return stream.getControls(); }