Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onPlayError()方法 #31

Closed
PiPiCaptain opened this issue Jan 6, 2017 · 4 comments
Closed

onPlayError()方法 #31

PiPiCaptain opened this issue Jan 6, 2017 · 4 comments

Comments

@PiPiCaptain
Copy link

我需要在报错时,取到报错的当前播放时间点。能否可以取到?

@CarGuo
Copy link
Owner

CarGuo commented Jan 6, 2017

接口有对应的获取当前时间的接口,请看wiki,如有实现上的细节问题,可以加入到qq群上面咨询哟。

@CarGuo CarGuo closed this as completed Jan 6, 2017
@PiPiCaptain
Copy link
Author

@CarGuo
/**

  • 获取当前播放进度
    */
    public int getCurrentPositionWhenPlaying()

这个方法在onPlayError()方法里,无法使用。因为你在回调onPlayError()前,已经将播放器释放掉了,所以我无法取到。

@CarGuo
Copy link
Owner

CarGuo commented Jan 6, 2017

其实就是你重载播放器的话,重载onError,这样在super之前,你不就可以做你想要的保存了么?

@CarGuo
Copy link
Owner

CarGuo commented Jan 6, 2017

如果可以,欢迎到群里讨论哟 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants