Tabnine Logo
MediaPlayerManager.isPlaying
Code IndexAdd Tabnine to your IDE (free)

How to use
isPlaying
method
in
org.salient.artplayer.MediaPlayerManager

Best Java code snippets using org.salient.artplayer.MediaPlayerManager.isPlaying (Showing top 6 results out of 315)

origin: maiwenchang/ArtPlayer

public void pause() {
  if (isPlaying()) {
    mediaPlayer.pause();
  }
}
origin: maiwenchang/ArtPlayer

  @Override
  public void run() {
    if (MediaPlayerManager.instance().getCurrentVideoView() == mTarget && MediaPlayerManager.instance().isPlaying()) {
      hideUI(layout_bottom, layout_top, start);
    }
  }
};
origin: maiwenchang/ArtPlayer

@Override
public boolean onDoubleTap(MotionEvent e) {
  //双击播放或暂停
  if (mControlPanel.getTarget().isCurrentPlaying()) {
    if (MediaPlayerManager.instance().isPlaying()) {
      mControlPanel.getTarget().pause();
    } else {
      mControlPanel.getTarget().start();
    }
  }
  return true;
}
origin: moyokoo/YoutubeVideoSample

@Override
public void onIconClick(YouTuDraggingView.IconType iconType) {
  if (iconType == YouTuDraggingView.IconType.CLOSE) {
    if (mVideoView.isCurrentPlaying()) {
      mVideoView.pause();
    }
  } else if (iconType == YouTuDraggingView.IconType.PAUSE) {
    if (mVideoView.isCurrentPlaying())
      mVideoView.pause();
  } else if (iconType == YouTuDraggingView.IconType.PLAY) {
    if (mVideoView.isCurrentPlaying() && MediaPlayerManager.instance().isPlaying())
      return;
    mVideoView.start();
  }
}
origin: moyokoo/YoutubeVideoSample

@Override
public void onClick(View v) {
  int id = v.getId();
  if (id == R.id.startCenterIv) {
    if (mTarget == null) {
      return;
    }
    if (mTarget.isCurrentPlaying() && MediaPlayerManager.instance().isPlaying()) {
      mTarget.pause();
    } else {
      if (!Utils.isNetConnected(getContext())) {
        onStateError();
        return;
      }
      if (!Utils.isWifiConnected(getContext())) {
        showWifiAlert();
        return;
      }
      mTarget.start();
    }
  }
}
origin: maiwenchang/ArtPlayer

  return;
if (mTarget.isCurrentPlaying() && MediaPlayerManager.instance().isPlaying()) {
  return;
  if (mTarget.isCurrentPlaying() && MediaPlayerManager.instance().isPlaying()) {
    return;
org.salient.artplayerMediaPlayerManagerisPlaying

Popular methods of MediaPlayerManager

  • instance
  • getCurrentVideoView
    获得 MediaPlayer 绑定的 VideoView
  • getPlayerState
  • cancelProgressTimer
  • getDuration
  • isMute
  • pause
  • releasePlayerAndView
  • seekTo
  • startProgressTimer
  • getCurrentControlPanel
  • isLooping
  • getCurrentControlPanel,
  • isLooping,
  • onVideoSizeChanged,
  • setScreenScale,
  • updateState,
  • backPress,
  • start,
  • addTextureView,
  • bindAudioFocus

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top Vim 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