public interface VideoPlayerListener
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onCompletion()
完成
|
void |
onError(int type,
java.lang.String error)
异常
1 表示错误的链接
2 表示解析异常
3 表示其他的异常
|
void |
onInfo(int what,
int extra)
视频信息
|
void |
onPrepared()
准备
|
void |
onVideoSizeChanged(int width,
int height)
视频size变化监听
|
void onError(int type,
java.lang.String error)
type - 错误类型void onCompletion()
void onInfo(int what,
int extra)
what - whatextra - extravoid onPrepared()
void onVideoSizeChanged(int width,
int height)
width - 宽height - 高