public static interface PlayerClient.OnPlaybackStateChangeListener
限定符和类型 | 方法和说明 |
---|---|
void |
onPlaybackStateChanged(PlaybackState playbackState,
boolean stalled)
该方法会在播放器的播放状态发生改变时调用。
|
void onPlaybackStateChanged(PlaybackState playbackState, boolean stalled)
playbackState
- 当前的播放器状态stalled
- 当前播放器是否处于 stalled 状态。当缓冲区没有足够的数据继续播放时,
该参数为 true,否则为 false