- onActive() - 类 中的方法snow.player.lifecycle.PlaylistLiveData
-
- onAudioSessionChanged(int) - 接口 中的方法snow.player.PlayerClient.OnAudioSessionChangeListener
-
该方法会在播放器的 audio session id 发生改变时调用。
- onBufferedProgressChanged(int) - 接口 中的方法snow.player.Player.OnBufferedProgressChangeListener
-
当缓冲进度发生改变时会回调该方法。
- onBufferingUpdate(MusicPlayer, int, boolean) - 接口 中的方法snow.player.audio.MusicPlayer.OnBufferingUpdateListener
-
该方法会在缓存进度更新时调用。
- onBuildMediaStyle(NotificationCompat.MediaStyle) - 类 中的方法snow.player.PlayerService.MediaNotificationView
-
该方法会在创建 NotificationCompat.MediaStyle
对象期间调用。
- onBuildNotification(NotificationCompat.Builder) - 类 中的方法snow.player.PlayerService.MediaNotificationView
-
该方法会在创建 NotificationCompat.Builder
期间调用。
- onCancelled() - 接口 中的方法snow.player.util.AsyncResult.OnCancelListener
-
当异步任务被取消时该方法会被调用。
- onCleared() - 类 中的方法snow.player.lifecycle.PlayerViewModel
-
- onCompletion(MusicPlayer) - 接口 中的方法snow.player.audio.MusicPlayer.OnCompletionListener
-
该方法会在音乐播放完毕时被调用。
- onConnected(boolean) - 接口 中的方法snow.player.PlayerClient.OnConnectCallback
-
该方法会在连接成功或失败时调用。
- onConnectStateChanged(boolean) - 接口 中的方法snow.player.PlayerClient.OnConnectStateChangeListener
-
当 PlayerClient 连接成功或者断开连接时会回调该方法。
- onCreate() - 类 中的方法snow.player.PlayerService
-
- onCreateAudioEffectManager() - 类 中的方法snow.player.PlayerService
-
创建音频特效引擎。
- onCreateAudioFocusChangeListener() - 类 中的方法snow.player.PlayerService
-
可以通过覆盖该方法来提供一个自定义的 AudioManager.OnAudioFocusChangeListener
- onCreateBetterIconLoader(Context) - 类 中的方法snow.player.PlayerService.NotificationView
-
- onCreateHistoryRecorder() - 类 中的方法snow.player.PlayerService
-
创建历史记录器,用于记录播放器的播放历史。
- onCreateIconLoader(Context) - 类 中的方法snow.player.PlayerService.NotificationView
-
已过时。
- onCreateMediaSessionCallback() - 类 中的方法snow.player.PlayerService
-
- onCreateMusicPlayer(Context, MusicItem, Uri) - 类 中的方法snow.player.PlayerService
-
该方法会在创建 MusicPlayer 对象时调用。
- onCreateNotification() - 类 中的方法snow.player.PlayerService.MediaNotificationView
-
- onCreateNotification() - 类 中的方法snow.player.PlayerService.NotificationView
-
创建一个新的 Notification 对象,不能为 null。
- onCreateNotificationView() - 类 中的方法snow.player.PlayerService
-
创建一个通知栏控制器,你可以通过覆盖该方法来提供自定义的通知栏控制器。
- onCustomAction(String, Bundle) - 类 中的方法snow.player.PlayerService.MediaSessionCallback
-
- onCustomAction(String, Bundle) - 类 中的方法snow.player.PlayerService
-
该方法会在 MediaSession 接收到 custom action 时调用。
- onDestroy() - 类 中的方法snow.player.PlayerService
-
- onEnd(List<T>, boolean) - 接口 中的方法snow.player.util.AudioScanner.OnProgressUpdateListener
-
该方法会在结束扫描或者扫描被取消后调用,并将扫描结果传递给该方法。
- onError(MusicPlayer, int) - 接口 中的方法snow.player.audio.MusicPlayer.OnErrorListener
-
该方法会在错误发生时被调用。
- onError(int, String) - 接口 中的方法snow.player.Player.OnPlaybackStateChangeListener
-
当播放器发生错误时会回调该方法。
- onError(Throwable) - 类 中的方法snow.player.util.AsyncResult
-
当异步任务执行失败时,调用该方法发送异常信息。
- onFastForward() - 类 中的方法snow.player.PlayerService.MediaSessionCallback
-
- onFinished(Playlist) - 接口 中的方法snow.player.playlist.PlaylistManager.Callback
-
当获取播放列表成功时会调用该方法。
- onGetRoot(String, int, Bundle) - 类 中的方法snow.player.PlayerService
-
- onHeadsetHookClicked(int) - 类 中的方法snow.player.PlayerService
-
当耳机上的按钮被点击时会调用该方法。
- onIconLoaded(Bitmap) - 接口 中的方法snow.player.PlayerService.NotificationView.IconLoader.Callback
-
已过时。
图片加载成功或者失败时调用该方法。
- onIDLE() - 接口 中的方法snow.player.helper.PhoneCallStateHelper.OnStateChangeListener
-
没有来电(或者来电已经挂了)。
- onInactive() - 类 中的方法snow.player.lifecycle.PlaylistLiveData
-
- onInit(Context) - 类 中的方法snow.player.PlayerService.MediaNotificationView
-
- onInit(Context) - 类 中的方法snow.player.PlayerService.NotificationView
-
该方法会在初次创建 NotificationView 对象时调用,你可以重写该方法来进行一些初始化操作。
- onInitialized() - 类 中的方法snow.player.lifecycle.PlayerViewModel
-
- onLoadChildren(String, MediaBrowserServiceCompat.Result<List<MediaBrowserCompat.MediaItem>>) - 类 中的方法snow.player.PlayerService
-
- ONLY_WIFI_NETWORK - 类 中的静态变量snow.player.audio.ErrorCode
-
仅允许 Wifi 网络下联网。
- onMediaButtonEvent(Intent) - 类 中的方法snow.player.PlayerService.MediaSessionCallback
-
- onMediaButtonEvent(Intent) - 类 中的方法snow.player.PlayerService
-
该方法会在媒体按钮被触发时调用。
- onNetworkStateChanged(boolean, boolean) - 接口 中的方法snow.player.helper.NetworkHelper.OnNetworkStateChangeListener
-
该方法会在网络状态改变时调用。
- onOffHook() - 接口 中的方法snow.player.helper.PhoneCallStateHelper.OnStateChangeListener
-
正在拨号,正在通话或处于保留状态的呼叫,并且没有电话在响铃或等待。
- onPause(int, long) - 接口 中的方法snow.player.Player.OnPlaybackStateChangeListener
-
当播放器的状态变为 “暂停” 时会回调该方法。
- onPause() - 类 中的方法snow.player.PlayerService.MediaSessionCallback
-
- onPlay(boolean, int, long) - 接口 中的方法snow.player.Player.OnPlaybackStateChangeListener
-
当播放器的状态变为 “播放中” 时会回调该方法。
- onPlay() - 类 中的方法snow.player.PlayerService.MediaSessionCallback
-
- onPlaybackStateChanged(PlaybackState, boolean) - 接口 中的方法snow.player.PlayerClient.OnPlaybackStateChangeListener
-
该方法会在播放器的播放状态发生改变时调用。
- onPlayingMusicItemChanged(MusicItem, int, int) - 接口 中的方法snow.player.Player.OnPlayingMusicItemChangeListener
-
当正在播放的音乐被改变时(例如:切换歌曲)会回调该方法。
- onPlaylistChanged(PlaylistManager, int) - 类 中的方法snow.player.lifecycle.PlaylistLiveData
-
- onPlaylistChanged(PlaylistManager, int) - 接口 中的方法snow.player.Player.OnPlaylistChangeListener
-
播放队列被替换或修改时会调用该方法。
- onPlayModeChanged(PlayMode) - 接口 中的方法snow.player.Player.OnPlayModeChangeListener
-
当播放模式被改变时会调用该方法。
- onPlayModeChanged(PlayMode) - 类 中的方法snow.player.PlayerService.NotificationView
-
该方法会在播放模式发生改变时调用。
- onPrepared(MusicPlayer) - 接口 中的方法snow.player.audio.MusicPlayer.OnPreparedListener
-
该方法会在音乐播放器准备完毕时被调用。
- onPrepared(int) - 接口 中的方法snow.player.Player.OnPrepareListener
-
当播放器的状态变为 “准备完毕” 时会回调该方法。
- onPreparing() - 接口 中的方法snow.player.Player.OnPrepareListener
-
当播放器的状态变为 “准备中” 时会回调该方法。
- onProgressUpdate(int) - 接口 中的方法snow.player.util.AudioScanner.OnProgressUpdateListener
-
当扫描进度更新时会调用该方法。
- onRelease() - 类 中的方法snow.player.PlayerService.NotificationView
-
该方法会在 Service 销毁时调用,可以在该方法中释放占用的资源。
- onRepeat(MusicPlayer) - 接口 中的方法snow.player.audio.MusicPlayer.OnRepeatListener
-
播放器为循环播放,当歌曲播放完并且进入下次循环时调用该方法。
- onRepeat(MusicItem, long) - 接口 中的方法snow.player.Player.OnRepeatListener
-
- onRetrieveMusicItemUri(MusicItem, SoundQuality) - 类 中的方法snow.player.PlayerService
-
已过时。
- onRetrieveMusicItemUri(MusicItem, SoundQuality, AsyncResult<Uri>) - 类 中的方法snow.player.PlayerService
-
获取音乐的播放链接。
- onRewind() - 类 中的方法snow.player.PlayerService.MediaSessionCallback
-
- onRinging() - 接口 中的方法snow.player.helper.PhoneCallStateHelper.OnStateChangeListener
-
来电响铃。
- onSeekComplete(MusicPlayer) - 接口 中的方法snow.player.audio.MusicPlayer.OnSeekCompleteListener
-
该方法会在 seek 完成时被调用。
- onSeekComplete(int, long, boolean) - 接口 中的方法snow.player.Player.OnSeekCompleteListener
-
该方法会在 seek 操作执行完成时调用。
- onSeekTo(long) - 类 中的方法snow.player.PlayerService.MediaSessionCallback
-
- onSetRepeatMode(int) - 类 中的方法snow.player.PlayerService.MediaSessionCallback
-
- onSetShuffleMode(int) - 类 中的方法snow.player.PlayerService.MediaSessionCallback
-
- onShutdown() - 接口 中的方法snow.player.PlayerStateListener
-
当服务端准备关闭时会回调该方法,此时客户端应主动断开与服务端的连接。
- onSkipToNext() - 类 中的方法snow.player.PlayerService.MediaSessionCallback
-
- onSkipToPrevious() - 类 中的方法snow.player.PlayerService.MediaSessionCallback
-
- onSkipToQueueItem(long) - 类 中的方法snow.player.PlayerService.MediaSessionCallback
-
- onSpeedChanged(float) - 接口 中的方法snow.player.Player.OnSpeedChangeListener
-
当播放器的播放速度改变时会调用该方法。
- onStalled(boolean) - 接口 中的方法snow.player.audio.MusicPlayer.OnStalledListener
-
该方法会在播放器的 stalled 状态改变时调用。
- onStalledChanged(boolean, int, long) - 接口 中的方法snow.player.Player.OnStalledChangeListener
-
当播放器的 stalled 状态发生改变时会回调该方法。
- onStart() - 接口 中的方法snow.player.util.AudioScanner.OnProgressUpdateListener
-
该方法会在开始扫描前调用。
- onStartCommand(Intent, int, int) - 类 中的方法snow.player.PlayerService
-
- onStartTrackingTouch(SeekBar) - 类 中的方法snow.player.lifecycle.PlayerViewModel
-
DataBinding 框架与 SeekBar 专用。
- onStop() - 接口 中的方法snow.player.Player.OnPlaybackStateChangeListener
-
当播放器的状态变为 “停止” 时会回调该方法。
- onStop() - 类 中的方法snow.player.PlayerService.MediaSessionCallback
-
- onStopTrackingTouch(SeekBar) - 类 中的方法snow.player.lifecycle.PlayerViewModel
-
DataBinding 框架与 SeekBar 专用。
- onSuccess(T) - 类 中的方法snow.player.util.AsyncResult
-
当异步任务执行成功时,调用该方法发送结果值。
- onSyncPlayerState(String, PlayerState) - 接口 中的方法snow.player.PlayerStateSynchronizer.OnSyncPlayerStateListener
-
- onTimerEnd() - 接口 中的方法snow.player.SleepTimer.OnStateChangeListener
-
当睡眠定时器正常终止或者被取消时会调用该方法。
- onTimerStart(long, long, SleepTimer.TimeoutAction) - 接口 中的方法snow.player.SleepTimer.OnStateChangeListener
-
当启动睡眠定时器时会调用该方法。
- onUpdate(int, int, String, String) - 接口 中的方法snow.player.util.LiveProgress.OnUpdateListener
-
当播放器的实时播放进度更新时会调用该方法。
- onUpdateProgress(int, int) - 接口 中的方法snow.player.util.ProgressClock.Callback
-
该方法会在 ProgressClock 的进度更新时调用。
- OUT_OF_MEMORY - 类 中的静态变量snow.player.audio.ErrorCode
-
内存不足。