Tabnine Logo
BufferControl.setBufferLength
Code IndexAdd Tabnine to your IDE (free)

How to use
setBufferLength
method
in
javax.media.control.BufferControl

Best Java code snippets using javax.media.control.BufferControl.setBufferLength (Showing top 8 results out of 315)

origin: igniterealtime/Smack

if (bc != null) {
  int bl = 160;
  bc.setBufferLength(bl);
origin: jitsi/libjitsi

/**
 * Performs any optional configuration on the <tt>BufferControl</tt> of the
 * specified <tt>RTPManager</tt> which is to be used as the
 * <tt>RTPManager</tt> of this <tt>MediaStreamImpl</tt>.
 *
 * @param rtpManager the <tt>RTPManager</tt> which is to be used by this
 * <tt>MediaStreamImpl</tt>
 * @param bufferControl the <tt>BufferControl</tt> of <tt>rtpManager</tt> on
 * which any optional configuration is to be performed
 */
@Override
protected void configureRTPManagerBufferControl(
    StreamRTPManager rtpManager,
    BufferControl bufferControl)
{
  super.configureRTPManagerBufferControl(rtpManager, bufferControl);
  bufferControl.setBufferLength(BufferControl.MAX_VALUE);
}
origin: stackoverflow.com

 Player p = Manager.createRealizedPlayer( f.toURI().toURL() );

BufferControl bc = (BufferControl) p.getControl( "javax.media.control.BufferControl" );
if ( bc != null )
 bc.setBufferLength( 500 ); // buffer length specified in milliseconds

p.start();
System.out.println( "Player playing" );

Thread.sleep( 1000 );
System.out.println( " Clip is at time: " + p.getMediaTime().getSeconds() );

p.stop();
System.out.println( " Clip is at time: " + p.getMediaTime().getSeconds() );
origin: jitsi/libjitsi

bufferControl.setBufferLength(60 /* millis */);
origin: jitsi/libjitsi

/**
 * Attempts to equalize the length in milliseconds of the buffering
 * performed by the <tt>inStreams</tt> in order to always read and mix
 * one and the same length in milliseconds.
 */
void equalizeInStreamBufferLength()
{
  synchronized (inStreamsSyncRoot)
  {
    if ((inStreams == null) || (inStreams.length < 1))
      return;
    /*
     * The first inStream is expected to be from the CaptureDevice
     * and no custom BufferControl is provided for it so the
     * bufferLength is whatever it says.
     */
    BufferControl bufferControl = getBufferControl(inStreams[0]);
    long bufferLength
      = (bufferControl == null)
        ? CachingPushBufferStream.DEFAULT_BUFFER_LENGTH
        : bufferControl.getBufferLength();
    for (int i = 1; i < inStreams.length; i++)
    {
      BufferControl inStreamBufferControl
        = getBufferControl(inStreams[i]);
      if (inStreamBufferControl != null)
        inStreamBufferControl.setBufferLength(bufferLength);
    }
  }
}
origin: jitsi/libjitsi

bufferLength = bufferControl.setBufferLength(bufferLength);
if (logger.isTraceEnabled())
  logger.trace("Set receiver buffer length to " + bufferLength);
origin: org.igniterealtime.smack/smack-jingle

if (bc != null) {
  int bl = 160;
  bc.setBufferLength(bl);
origin: org.igniterealtime.smack/smackx-jingle

if (bc != null) {
  int bl = 160;
  bc.setBufferLength(bl);
javax.media.controlBufferControlsetBufferLength

Popular methods of BufferControl

  • getBufferLength
  • getControlComponent
  • getEnabledThreshold
  • getMinimumThreshold
  • setEnabledThreshold
  • setMinimumThreshold

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JTextField (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now