{"action":"created","issue":{"url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/1024","repository_url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer","labels_url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/1024/labels{/name}","comments_url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/1024/comments","events_url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/1024/events","html_url":"https://github.com/CarGuo/GSYVideoPlayer/issues/1024","id":315347515,"number":1024,"title":"startWindowFullscreen开启全屏的方法中super.startWindowFullscreen(context, actionBar, statusBar);返回的null","user":{"login":"KafukaChen","id":22462950,"avatar_url":"https://avatars3.githubusercontent.com/u/22462950?v=4","gravatar_id":"","url":"https://api.github.com/users/KafukaChen","html_url":"https://github.com/KafukaChen","followers_url":"https://api.github.com/users/KafukaChen/followers","following_url":"https://api.github.com/users/KafukaChen/following{/other_user}","gists_url":"https://api.github.com/users/KafukaChen/gists{/gist_id}","starred_url":"https://api.github.com/users/KafukaChen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KafukaChen/subscriptions","organizations_url":"https://api.github.com/users/KafukaChen/orgs","repos_url":"https://api.github.com/users/KafukaChen/repos","events_url":"https://api.github.com/users/KafukaChen/events{/privacy}","received_events_url":"https://api.github.com/users/KafukaChen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-18T06:30:42Z","updated_at":"2018-04-19T02:26:38Z","closed_at":null,"author_association":"NONE","body":"自定义播放器UI集成StandardGSYVideoPlayer后，\r\n在开启全屏时重写的startWindowFullscreen（Context context, boolean actionBar, boolean statusBar）方法\r\n但是偶尔会出现父类返回的对象为null的情况，super.startWindowFullscreen(context, actionBar, statusBar)返回null。打断点进入GSYBaseVideoPlayer后发现，该类的startWindowFullscreen方法中\r\nhadNewConstructor == true；548行的 gsyVideoPlayer = constructor.newInstance(getActivityContext(), true);报错，捕获的错误类型是java.long.reflect.InvocationTargetException.\r\n这个问题有时出现有时没有，确保未更改响应代码\r\n\r\n总结下就是GSYBaseVideoPlayer中startWindowFullscreen方法的try catch捕获到java.long.reflect.InvocationTargetException."},"comment":{"url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/comments/382589428","html_url":"https://github.com/CarGuo/GSYVideoPlayer/issues/1024#issuecomment-382589428","issue_url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/1024","id":382589428,"user":{"login":"CarGuo","id":10770362,"avatar_url":"https://avatars3.githubusercontent.com/u/10770362?v=4","gravatar_id":"","url":"https://api.github.com/users/CarGuo","html_url":"https://github.com/CarGuo","followers_url":"https://api.github.com/users/CarGuo/followers","following_url":"https://api.github.com/users/CarGuo/following{/other_user}","gists_url":"https://api.github.com/users/CarGuo/gists{/gist_id}","starred_url":"https://api.github.com/users/CarGuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CarGuo/subscriptions","organizations_url":"https://api.github.com/users/CarGuo/orgs","repos_url":"https://api.github.com/users/CarGuo/repos","events_url":"https://api.github.com/users/CarGuo/events{/privacy}","received_events_url":"https://api.github.com/users/CarGuo/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T02:26:38Z","updated_at":"2018-04-19T02:26:38Z","author_association":"OWNER","body":"public XXXX(Context context, Boolean fullFlag) 这是必须重载才会返回两套布局是没问题的。\r\n\r\n至于demo复现不了，我也定位不了啊"}}
{"actor":{"display_login":"CarGuo"}}