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

判断了mediaPlayer!=null,调用seekTo()方法后依然抛NullpointException #1264

Open
Beseting opened this issue Aug 30, 2021 · 0 comments

Comments

@Beseting
Copy link

//looping->false SurfaceView
if (this.mediaPlayer != null) {// OnCompletionListener回调中执行
this.mediaPlayer.seekTo(0);
this.mediaPlayer.start();
}

java.lang.NullPointerException
Attempt to invoke virtual method 'void com.qiniu.qplayer.mediaEngine.MediaPlayer.seekTo(int)' on a null object reference

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

1 participant