NIMSDK-AOS  10.9.76
OnPlayListener.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.media.player;
2 
3 /**
4  * AudioPlayer的播放进度监听
5  *
6  */
7 public interface OnPlayListener {
8  /**
9  * 文件解码完成,准备播放
10  */
11  public void onPrepared();
12 
13  /**
14  * 播放完成
15  */
16  public void onCompletion();
17 
18  /**
19  * 中断播放
20  */
21  public void onInterrupt();
22 
23  /**
24  * 出错
25  *
26  * @param error
27  * 错误原因
28  */
29  public void onError(String error);
30 
31  /**
32  * 播放过程
33  *
34  * @param curPosition
35  * 音频当前播放位置
36  */
37  public void onPlaying(long curPosition);
38 }
void onPlaying(long curPosition)
播放过程
void onPrepared()
文件解码完成,准备播放