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

用KSYMediaPlayer播放视频没有立即调用onDestroy方法 #146

Open
shen375650791 opened this issue Mar 16, 2017 · 7 comments
Open

Comments

@shen375650791
Copy link

你好。android 用 KSYMediaPlayer播放视频在关闭界面的时候调用了stop和release以后onDestroy不立即调用,要隔好几秒钟才调用这个是为什么呢,对app有影响吗?

@FirmianaRain
Copy link

是每次必现吗?

@shen375650791
Copy link
Author

嗯嗯,是的,我担心对app造成影响所以我就问问是为什么,你们能重现吗,可以打印下什么时候调用的onDestroy

@FirmianaRain
Copy link

请问下onDestroy是哪个类的接口呢?Activity?

@shen375650791
Copy link
Author

对呀Activity最后销毁的时候就会调用onDestroy方法,如果没有调用就说明Activity还存在的,

@FirmianaRain
Copy link

你的意思是stop或release接口阻塞了onDestroy的调用吗?
请问stop和release是在什么时候调用的呢?

@shen375650791
Copy link
Author

不是,我的意思是播放视频的时候影响到了,而不是stop的时候。就是点退出的时候,调用finish方法的时候我调用的

@FirmianaRain
Copy link

你在onDestroy里调用了player的stop和release吗?
如果不是,那就不清楚在你调用activity的finish之后onDestroy为啥不立即执行了

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