MediaPlayer中使用到的回调函数介绍
来源:互联网 发布:男士滑雪帽 知乎 编辑:程序博客网 时间:2024/05/24 22:45
下面是从Google官网文档中截取出的说明文档,现简单的进行一下翻译说明,可以让大家更好的了解一下设置这些回调可以做哪些事。
interface
MediaPlayer.OnBufferingUpdateListener
Interface definition of a callback to be invoked indicating buffering status of a media resource being streamed over the network.
interface
MediaPlayer.OnCompletionListener
Interface definition for a callback to be invoked when playback of a media source has completed.
interface
MediaPlayer.OnErrorListener
Interface definition of a callback to be invoked when there has been an error during an asynchronous operation (other errors will throw exceptions at method call time).
interface
MediaPlayer.OnInfoListener
Interface definition of a callback to be invoked to communicate some info and/or warning about the media or its playback.
interface
MediaPlayer.OnPreparedListener
Interface definition for a callback to be invoked when the media source is ready for playback.
interface
MediaPlayer.OnSeekCompleteListener
Interface definition of a callback to be invoked indicating the completion of a seek operation.
interface
MediaPlayer.OnTimedTextListener
Interface definition of a callback to be invoked when a timed text is available for display.
interface
MediaPlayer.OnVideoSizeChangedListener
Interface definition of a callback to be invoked when the video size is first known or updated
class
MediaPlayer.TrackInfo
Class for MediaPlayer to return each audio/video/subtitle track's metadata.
MediaPlayer.OnBufferingUpdateListener 这是一个回调接口,主要返回的信息就是返回网络流媒体数据的缓冲情况
MediaPlayer.OnCompletionListener 当一个媒体文件播放结束时会调用这个回调接口
MediaPlayer.OnErrorListener 当调用PrepareSync 或播放出现错误时,会回调这个接口
MediaPlayer.OnInfoListener 当播放媒体时出现警告信息时,会回调该函数
MediaPlayer.OnPreparedListener 当一个MediaPlayer对象调用异步Prepare,当Prepare执行完后,会回调这个接口
MediaPlayer.OnSeekCompleteListener 当我们修改播放位置时,修改播放位置完成时,回调这个接口
MediaPlayer.OnTimedTextListener 当播放媒体文件,播放的时间变化时,会回调这个接口
MediaPlayer.OnVideoSizeChangedListener 当播放的Video文件的尺寸发生变化时,回调该接口
MediaPlayer.TrackInfo 返回媒体文件的元数据
- MediaPlayer中使用到的回调函数介绍
- Delphi中回调函数的使用
- DELPHI中回调函数的使用
- DELPHI中回调函数的使用
- V3d_View中回调函数的使用
- C++ 中回调函数的使用
- C++中回调函数的使用
- Java中回调函数的使用
- Android中回调函数的使用
- Javascript中回调函数的使用
- 回调函数的介绍
- 回调函数的介绍
- VC/MFC中使用回调函数 关于回调函数的作用
- 回调函数的使用
- 回调函数的使用
- 回调函数的使用
- 回调函数的使用
- 回调函数的使用
- JAVA ----socket学习
- varnish缓存策略之director
- 剑指offer面试题(49)把字符串转换成整数
- org.springframework.web.servlet.DispatcherServlet noHandlerFound 警告: No mapping found for HTTP reque
- 写给大二学期末的我
- MediaPlayer中使用到的回调函数介绍
- 打开关闭系统图标音量、电源、网络、操作中心不能编辑解决办法
- BZOJ2326 [HNOI2011]数学作业
- 程序员要知道的事情
- Qt 使用小记
- java hash_map
- Java学习之类的构建方法(函数)
- Hibernate多对多关双向联映射
- 基于Jfinal实现的权限管理系统 JfinalUIB