Codota Logo
MediaPlayerManager.pause
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using org.salient.artplayer.MediaPlayerManager.pause (Showing top 6 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: moyokoo/Diooto

@Override
protected void onPause() {
  super.onPause();
  MediaPlayerManager.instance().pause();
}
origin: moyokoo/YoutubeVideoSample

@Override
protected void onPause() {
  super.onPause();
  MediaPlayerManager.instance().pause();
}
origin: maiwenchang/ArtPlayer

@Override
protected void onPause() {
  super.onPause();
  hideSoftInput();
  MediaPlayerManager.instance().pause();
}
origin: maiwenchang/ArtPlayer

  @Override
  public void onAudioFocusChange(int focusChange) {
    switch (focusChange) {
      case AudioManager.AUDIOFOCUS_GAIN://获得焦点
        Log.d(TAG, "AUDIOFOCUS_GAIN [" + this.hashCode() + "]");
        //MediaPlayerManager.instance().start();
        break;
      case AudioManager.AUDIOFOCUS_LOSS://声音失去焦点
        MediaPlayerManager.instance().pause();
        Log.d(TAG, "AUDIOFOCUS_LOSS [" + this.hashCode() + "]");
        break;
      case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT://声音短暂失去焦点
        Log.d(TAG, "AUDIOFOCUS_LOSS_TRANSIENT [" + this.hashCode() + "]");
        MediaPlayerManager.instance().pause();
        break;
      case AudioManager.AUDIOFOCUS_GAIN_TRANSIENT://声音短暂得到焦点
        Log.d(TAG, "AUDIOFOCUS_GAIN_TRANSIENT [" + this.hashCode() + "]");
        //MediaPlayerManager.instance().start();
        break;
      case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK://todo 声音短暂(一瞬间)失去焦点,适当减低音量
        Log.d(TAG, "AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK [" + this.hashCode() + "]");
        break;
    }
  }
}
origin: maiwenchang/ArtPlayer

/**
 * 暂停
 */
public void pause() {
  if (isCurrentPlaying()) {
    if (MediaPlayerManager.instance().getPlayerState() == MediaPlayerManager.PlayerState.PLAYING) {
      Log.d(TAG, "pause [" + this.hashCode() + "] ");
      MediaPlayerManager.instance().pause();
    }
  }
}
origin: maiwenchang/ArtPlayer

@Override
protected void onPause() {
  super.onPause();
  hideSoftInput();
  MediaPlayerManager.instance().pause();
}
org.salient.artplayerMediaPlayerManagerpause

Popular methods of MediaPlayerManager

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

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • String (java.lang)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
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