Tabnine Logo
NoPlayer$BufferStateListener.onBufferCompleted
Code IndexAdd Tabnine to your IDE (free)

How to use
onBufferCompleted
method
in
com.novoda.noplayer.NoPlayer$BufferStateListener

Best Java code snippets using com.novoda.noplayer.NoPlayer$BufferStateListener.onBufferCompleted (Showing top 6 results out of 315)

origin: novoda/no-player

  @Test
  public void givenBufferStateListeners_whenNotifyingOfBufferCompleted_thenAllTheListenersAreNotifiedAppropriately() {

    bufferStateListeners.onBufferCompleted();

    verify(aBufferStateListener).onBufferCompleted();
    verify(anotherBufferStateListener).onBufferCompleted();
  }
}
origin: novoda/no-player

  @Override
  public void onBufferCompleted() {
    for (NoPlayer.BufferStateListener listener : listeners) {
      listener.onBufferCompleted();
    }
  }
}
origin: novoda/no-player

@Override
public void onPlayerStateChanged(boolean playWhenReady, int playbackState) {
  if (playbackState == Player.STATE_BUFFERING) {
    bufferStateListener.onBufferStarted();
  } else if (playbackState == Player.STATE_READY) {
    bufferStateListener.onBufferCompleted();
  }
}
origin: novoda/no-player

  @Override
  public boolean onError(MediaPlayer mp, int what, int extra) {
    bufferStateListener.onBufferCompleted();
    NoPlayer.PlayerError error = ErrorFactory.createErrorFrom(what, extra);
    errorListener.onError(error);
    return true;
  }
}
origin: novoda/no-player

  @Override
  public void onBufferComplete() {
    bufferStateListener.onBufferCompleted();
  }
}
origin: novoda/no-player

  @Override
  public void onPrepared(MediaPlayer mp) {
    bufferStateListener.onBufferCompleted();
  }
}
com.novoda.noplayerNoPlayer$BufferStateListeneronBufferCompleted

Popular methods of NoPlayer$BufferStateListener

  • onBufferStarted

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Best IntelliJ plugins
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