标签: android exoplayer
我已经实现了ExoPlayer.EventListener接口以覆盖方法public void onPlayerError(ExoPlaybackException error),因此我可以拦截异常并在抛出特定异常时重新启动播放器。问题是,即使发生了错误BehindLiveWindowException,也从未调用此方法。
ExoPlayer.EventListener
public void onPlayerError(ExoPlaybackException error)
BehindLiveWindowException
有人知道为什么这个方法没有执行吗?
My code sample