{"action":"reopened","issue":{"url":"https://api.github.com/repos/saki4510t/AudioVideoRecordingSample/issues/3","labels_url":"https://api.github.com/repos/saki4510t/AudioVideoRecordingSample/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/saki4510t/AudioVideoRecordingSample/issues/3/comments","events_url":"https://api.github.com/repos/saki4510t/AudioVideoRecordingSample/issues/3/events","html_url":"https://github.com/saki4510t/AudioVideoRecordingSample/issues/3","id":85165439,"number":3,"title":"Adapt the encoding package to screen record","user":{"login":"RazorPT","id":7467102,"avatar_url":"https://avatars.githubusercontent.com/u/7467102?v=3","gravatar_id":"","url":"https://api.github.com/users/RazorPT","html_url":"https://github.com/RazorPT","followers_url":"https://api.github.com/users/RazorPT/followers","following_url":"https://api.github.com/users/RazorPT/following{/other_user}","gists_url":"https://api.github.com/users/RazorPT/gists{/gist_id}","starred_url":"https://api.github.com/users/RazorPT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RazorPT/subscriptions","organizations_url":"https://api.github.com/users/RazorPT/orgs","repos_url":"https://api.github.com/users/RazorPT/repos","events_url":"https://api.github.com/users/RazorPT/events{/privacy}","received_events_url":"https://api.github.com/users/RazorPT/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-04T16:11:57Z","updated_at":"2015-06-07T18:26:22Z","closed_at":null,"body":"Hi there\r\n\r\nYour code its the first one i found which seems to working flawlessly while recording audio and video with MediaCodec, but i tried to convert the MediaVideoEncoder to capture screen and for that i used small bits of code from https://github.com/yrom/ScreenRecorder but when i try to record it will only record for a second and then stops no matter i long i leave it recording.\r\n\r\nWhat i did was strip the RenderHandler from the  MediaVideoEncoder since it doesnt seem i need it and pass MediaProjection object to the MediaVideoEncoder constructor  and then i just add this to the end of MediaVideoEncoder prepare method:\r\n        \r\nmVirtualDisplay = mMediaProjection.createVirtualDisplay(TAG + \"-display\",\r\n                mWidth, mHeight, mDpi, DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC,\r\n                mSurface, null, null);\r\n\r\nFrom what i understand the mSurface receives input from display after this method, it works and i capture the screen for just a 1 second then it stops any idea what i might be missing?\r\n\r\nThank you for your time"}}