QNMediaPlayerListener
Index
Core Methods
Core Methods
onPlayerStateChanged
- void onPlayerStateChanged(QNPlayerState state)
-
播放器状态改变时触发
Parameters-
state: QNPlayerState
播放器状态
-
onPlayerEvent
- void onPlayerEvent(QNPlayerEvent event, QNPlayerEventInfo info)
-
播放器事件改变时触发
Parameters-
event: QNPlayerEvent
播放器事件
-
info: QNPlayerEventInfo
事件信息,如错误码等
-
onPlayerPositionChanged
- void onPlayerPositionChanged(long position)
-
播放进度更新时触发
Parameters-
position: long
当前的播放进度,单位 ms
-
文档反馈
(如有产品使用问题,请 提交工单)