{"action":"created","issue":{"url":"https://api.github.com/repos/pili-engineering/PLDroidCameraStreaming/issues/158","repository_url":"https://api.github.com/repos/pili-engineering/PLDroidCameraStreaming","labels_url":"https://api.github.com/repos/pili-engineering/PLDroidCameraStreaming/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/pili-engineering/PLDroidCameraStreaming/issues/158/comments","events_url":"https://api.github.com/repos/pili-engineering/PLDroidCameraStreaming/issues/158/events","html_url":"https://github.com/pili-engineering/PLDroidCameraStreaming/issues/158","id":168086177,"number":158,"title":"GLSurfaceView 无法在 Fragment 中使用","user":{"login":"daweibayu","id":2443922,"avatar_url":"https://avatars.githubusercontent.com/u/2443922?v=3","gravatar_id":"","url":"https://api.github.com/users/daweibayu","html_url":"https://github.com/daweibayu","followers_url":"https://api.github.com/users/daweibayu/followers","following_url":"https://api.github.com/users/daweibayu/following{/other_user}","gists_url":"https://api.github.com/users/daweibayu/gists{/gist_id}","starred_url":"https://api.github.com/users/daweibayu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daweibayu/subscriptions","organizations_url":"https://api.github.com/users/daweibayu/orgs","repos_url":"https://api.github.com/users/daweibayu/repos","events_url":"https://api.github.com/users/daweibayu/events{/privacy}","received_events_url":"https://api.github.com/users/daweibayu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-28T12:42:38Z","updated_at":"2016-08-03T05:56:44Z","closed_at":null,"body":"我们想把视频上传的业务单独剥离到一个 Fragment，使用的时候发现 render 会有问题，可参见 http://stackoverflow.com/questions/10628998/glsurfaceview-inside-fragment-not-rendering-when-restarted 。\r\n但是我发现 CameraStreamingManager 其实是限定死了，必须要传入 GLSurfaceView，而 GLSurfaceView 相关 render 的代码是混淆过的，所以既没办法自己去渲染 camera prview，也没办法实例化一个你们的 render，期望这里可以给一个解决方案。"},"comment":{"url":"https://api.github.com/repos/pili-engineering/PLDroidCameraStreaming/issues/comments/237149154","html_url":"https://github.com/pili-engineering/PLDroidCameraStreaming/issues/158#issuecomment-237149154","issue_url":"https://api.github.com/repos/pili-engineering/PLDroidCameraStreaming/issues/158","id":237149154,"user":{"login":"daweibayu","id":2443922,"avatar_url":"https://avatars.githubusercontent.com/u/2443922?v=3","gravatar_id":"","url":"https://api.github.com/users/daweibayu","html_url":"https://github.com/daweibayu","followers_url":"https://api.github.com/users/daweibayu/followers","following_url":"https://api.github.com/users/daweibayu/following{/other_user}","gists_url":"https://api.github.com/users/daweibayu/gists{/gist_id}","starred_url":"https://api.github.com/users/daweibayu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daweibayu/subscriptions","organizations_url":"https://api.github.com/users/daweibayu/orgs","repos_url":"https://api.github.com/users/daweibayu/repos","events_url":"https://api.github.com/users/daweibayu/events{/privacy}","received_events_url":"https://api.github.com/users/daweibayu/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T05:56:44Z","updated_at":"2016-08-03T05:56:44Z","body":"不是返回，相关的 Activity 打开时就会报错。具体的报错信息：\r\nCaused by: java.lang.NullPointerException\r\nat android.opengl.GLSurfaceView.onPause(GLSurfaceView.java:550)\r\nat com.pili.pldroid.streaming.cam.c.a(CameraManager.java:234)\r\nat com.pili.pldroid.streaming.CameraStreamingManager.resume(CameraStreamingManager.java:701)\r\n"}}
{"actor":{"display_login":"daweibayu"}}