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

播放器隐藏时可能出现mMediaController为null #22

Closed
liongoodvery opened this issue Dec 14, 2016 · 1 comment
Closed

播放器隐藏时可能出现mMediaController为null #22

liongoodvery opened this issue Dec 14, 2016 · 1 comment

Comments

@liongoodvery
Copy link

UniversalVideoView line 844 mMediaController.toggleButtons(fullscreen);
这里mMediaController有可能为null
具体场景:有些页面需要播放视频,有些页面不需要.通过是否有是否有视频url决定是否隐藏播放器.当隐藏播放器时,mMediaController值并没有被设置,当屏幕选择时,mMediaController为null,导致程序崩溃.

@linsea
Copy link
Owner

linsea commented Dec 20, 2016

@liongoodvery 你可以在应用层作一些防御性检查

@linsea linsea closed this as completed Dec 20, 2016
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