Codota Logo
NoPlayer.isPlaying
Code IndexAdd Codota to your IDE (free)

How to use
isPlaying
method
in
com.novoda.noplayer.NoPlayer

Best Java code snippets using com.novoda.noplayer.NoPlayer.isPlaying (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: novoda/no-player

private boolean mediaPlayerIsUnavailable(NoPlayer player) {
  try {
    return !player.isPlaying();
  } catch (IllegalStateException e) {
    // The mediaplayer has not been initialized or has been released
    return true;
  }
}
origin: novoda/no-player

private boolean statusMightBeCorrupted() {
  return player.isPlaying();
}
origin: novoda/no-player

  @Override
  public void run() {
    if (player.isPlaying()) {
      callback.onBeat(player);
    }
  }
}
origin: novoda/no-player

  @Override
  public void perform() {
    if (noPlayer.isPlaying()) {
      noPlayer.pause();
    } else {
      noPlayer.play();
    }
  }
};
origin: novoda/no-player

@Test
public void givenStatusIsNotCorrupted_whenALayoutChangeOccurs_thenDoNotForceAlignNativeMediaPlayerStatus() {
  when(player.isPlaying()).thenReturn(false);
  onLayoutChange();
  verify(player, never()).play();
}
origin: novoda/no-player

@Test
public void givenStatusMightBeNotCorrupted_whenALayoutChangeOccurs_thenForceAlignNativeMediaPlayerStatus() {
  when(player.isPlaying()).thenReturn(true);
  onLayoutChange();
  verify(player, atLeastOnce()).play();
}
origin: novoda/no-player

  @Test
  public void emitsOnBeat_whenForcingBeat() {
    given(noPlayer.isPlaying()).willReturn(true);
    Heart.Heartbeat onHeartbeat = new Heart.Heartbeat(heartbeatCallback, noPlayer);
    heart.bind(onHeartbeat);

    heart.forceBeat();

    then(heartbeatCallback).should().onBeat(noPlayer);
  }
}
origin: novoda/no-player

@Test
public void emitsOnBeat_whenPlayerIsPlaying() {
  given(noPlayer.isPlaying()).willReturn(true);
  Heart.Heartbeat onHeartbeat = new Heart.Heartbeat(heartbeatCallback, noPlayer);
  heart.bind(onHeartbeat);
  heart.startBeatingHeart();
  then(heartbeatCallback).should().onBeat(noPlayer);
}
com.novoda.noplayerNoPlayerisPlaying

Popular methods of NoPlayer

  • play
    Plays content of a prepared Player.
  • playheadPositionInMillis
  • attach
    Attaches a given PlayerView to the Player.
  • bufferPercentage
  • clearAudioTrackSelection
    Clears the PlayerAudioTrack selection made in NoPlayer#selectAudioTrack(PlayerAudioTrack).
  • clearVideoTrackSelection
    Clears the PlayerVideoTrack selection made in NoPlayer#selectVideoTrack(PlayerVideoTrack).
  • getAudioTracks
    Retrieves all of the available PlayerAudioTrack of a prepared Player.
  • getListeners
    Retrieves a holder, which allows you to add and remove listeners on the Player.
  • getSubtitleTracks
    Retrieves all of the available PlayerSubtitleTrack of a prepared Player.
  • getVideoTracks
    Retrieves all of the available PlayerVideoTrack of a prepared Player.
  • getVolume
    Return the audio volume, with 0 being silence and 1 being unity gain.
  • hideSubtitleTrack
    Clear and hide the subtitles on an attached PlayerView.
  • getVolume,
  • hideSubtitleTrack,
  • loadVideo,
  • mediaDurationInMillis,
  • pause,
  • release,
  • seekTo,
  • selectAudioTrack,
  • selectVideoTrack

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now