{"action":"created","issue":{"url":"https://api.github.com/repos/pili-engineering/PLDroidCameraStreaming/issues/51","labels_url":"https://api.github.com/repos/pili-engineering/PLDroidCameraStreaming/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/pili-engineering/PLDroidCameraStreaming/issues/51/comments","events_url":"https://api.github.com/repos/pili-engineering/PLDroidCameraStreaming/issues/51/events","html_url":"https://github.com/pili-engineering/PLDroidCameraStreaming/issues/51","id":108306129,"number":51,"title":"[Question] How to record locally","user":{"login":"gouravd","id":3840752,"avatar_url":"https://avatars.githubusercontent.com/u/3840752?v=3","gravatar_id":"","url":"https://api.github.com/users/gouravd","html_url":"https://github.com/gouravd","followers_url":"https://api.github.com/users/gouravd/followers","following_url":"https://api.github.com/users/gouravd/following{/other_user}","gists_url":"https://api.github.com/users/gouravd/gists{/gist_id}","starred_url":"https://api.github.com/users/gouravd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gouravd/subscriptions","organizations_url":"https://api.github.com/users/gouravd/orgs","repos_url":"https://api.github.com/users/gouravd/repos","events_url":"https://api.github.com/users/gouravd/events{/privacy}","received_events_url":"https://api.github.com/users/gouravd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-25T11:12:13Z","updated_at":"2015-09-26T16:45:26Z","closed_at":null,"body":"I understand we have API setLocalFileAbsolutePath. But I am not sure how to use it to locally save video to file.\r\n\r\n1) mProfile.setVideoQuality(videoquality)\r\n                    .setAudioQuality(audioquality)\r\n                    .setEncodingSizeLevel(StreamingProfile.VIDEO_ENCODING_SIZE_QVGA)\r\n                    .setStream(stream)\r\n                    .setLocalFileAbsolutePath(Util.getVideoOutputPath() + \"/recording.mp4\")\r\n                    .setSendingBufferProfile(new StreamingProfile.SendingBufferProfile(0.2f, 0.8f, 3.0f, 10 * 1000));\r\n\r\nIf I use the above then streaming happens but recording to local file does not happen. if I comment ut setStream(stream), then we get IOError saying rtmp is null.\r\n\r\nPlease guide."},"comment":{"url":"https://api.github.com/repos/pili-engineering/PLDroidCameraStreaming/issues/comments/143469187","html_url":"https://github.com/pili-engineering/PLDroidCameraStreaming/issues/51#issuecomment-143469187","issue_url":"https://api.github.com/repos/pili-engineering/PLDroidCameraStreaming/issues/51","id":143469187,"user":{"login":"gouravd","id":3840752,"avatar_url":"https://avatars.githubusercontent.com/u/3840752?v=3","gravatar_id":"","url":"https://api.github.com/users/gouravd","html_url":"https://github.com/gouravd","followers_url":"https://api.github.com/users/gouravd/followers","following_url":"https://api.github.com/users/gouravd/following{/other_user}","gists_url":"https://api.github.com/users/gouravd/gists{/gist_id}","starred_url":"https://api.github.com/users/gouravd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gouravd/subscriptions","organizations_url":"https://api.github.com/users/gouravd/orgs","repos_url":"https://api.github.com/users/gouravd/repos","events_url":"https://api.github.com/users/gouravd/events{/privacy}","received_events_url":"https://api.github.com/users/gouravd/received_events","type":"User","site_admin":false},"created_at":"2015-09-26T16:45:26Z","updated_at":"2015-09-26T16:45:26Z","body":"Looking for help...Anyone used this?"}}