{"action":"created","comment":{"url":"https://api.github.com/repos/Piasy/RxAndroidAudio/pulls/comments/61708085","id":61708085,"diff_hunk":"@@ -131,11 +135,75 @@ public void call(final SingleSubscriber<? super Boolean> singleSubscriber) {\n                 }\n             });\n         } else {\n-            return Single.error(new IllegalArgumentException(\"\"));\n+            return Observable.error(new IllegalArgumentException(\"\"));\n+        }\n+    }\n+\n+    /**\n+     * prepare audio from local file. should be scheduled in IO thread.\n+     */\n+    public Observable<Boolean> prepare(@NonNull final PlayConfig config) {","path":"rxandroidaudio/src/main/java/com/github/piasy/rxandroidaudio/RxAudioPlayer.java","position":108,"original_position":96,"commit_id":"002e74dd7b5552241554e02f4ee01e104c41c698","original_commit_id":"d3e4d8cf99295a9832aee7de629dfebac33cd9f6","user":{"login":"Piasy","id":3098704,"avatar_url":"https://avatars.githubusercontent.com/u/3098704?v=3","gravatar_id":"","url":"https://api.github.com/users/Piasy","html_url":"https://github.com/Piasy","followers_url":"https://api.github.com/users/Piasy/followers","following_url":"https://api.github.com/users/Piasy/following{/other_user}","gists_url":"https://api.github.com/users/Piasy/gists{/gist_id}","starred_url":"https://api.github.com/users/Piasy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piasy/subscriptions","organizations_url":"https://api.github.com/users/Piasy/orgs","repos_url":"https://api.github.com/users/Piasy/repos","events_url":"https://api.github.com/users/Piasy/events{/privacy}","received_events_url":"https://api.github.com/users/Piasy/received_events","type":"User","site_admin":false},"body":"Got it :)","created_at":"2016-05-02T06:50:33Z","updated_at":"2016-05-02T06:50:33Z","html_url":"https://github.com/Piasy/RxAndroidAudio/pull/6#discussion_r61708085","pull_request_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/Piasy/RxAndroidAudio/pulls/comments/61708085"},"html":{"href":"https://github.com/Piasy/RxAndroidAudio/pull/6#discussion_r61708085"},"pull_request":{"href":"https://api.github.com/repos/Piasy/RxAndroidAudio/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/Piasy/RxAndroidAudio/pulls/6","id":68491132,"html_url":"https://github.com/Piasy/RxAndroidAudio/pull/6","diff_url":"https://github.com/Piasy/RxAndroidAudio/pull/6.diff","patch_url":"https://github.com/Piasy/RxAndroidAudio/pull/6.patch","issue_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/issues/6","number":6,"state":"open","locked":false,"title":"support prepare and onPrepare for RxAudioPlayer","user":{"login":"sajadshokri","id":2149107,"avatar_url":"https://avatars.githubusercontent.com/u/2149107?v=3","gravatar_id":"","url":"https://api.github.com/users/sajadshokri","html_url":"https://github.com/sajadshokri","followers_url":"https://api.github.com/users/sajadshokri/followers","following_url":"https://api.github.com/users/sajadshokri/following{/other_user}","gists_url":"https://api.github.com/users/sajadshokri/gists{/gist_id}","starred_url":"https://api.github.com/users/sajadshokri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sajadshokri/subscriptions","organizations_url":"https://api.github.com/users/sajadshokri/orgs","repos_url":"https://api.github.com/users/sajadshokri/repos","events_url":"https://api.github.com/users/sajadshokri/events{/privacy}","received_events_url":"https://api.github.com/users/sajadshokri/received_events","type":"User","site_admin":false},"body":"and also pause and resume song","created_at":"2016-05-01T08:58:08Z","updated_at":"2016-05-02T06:50:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"522bf5a18f889b6c902b530a95601060faad385d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/pulls/6/commits","review_comments_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/pulls/6/comments","review_comment_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/issues/6/comments","statuses_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/statuses/002e74dd7b5552241554e02f4ee01e104c41c698","head":{"label":"sajadshokri:master","ref":"master","sha":"002e74dd7b5552241554e02f4ee01e104c41c698","user":{"login":"sajadshokri","id":2149107,"avatar_url":"https://avatars.githubusercontent.com/u/2149107?v=3","gravatar_id":"","url":"https://api.github.com/users/sajadshokri","html_url":"https://github.com/sajadshokri","followers_url":"https://api.github.com/users/sajadshokri/followers","following_url":"https://api.github.com/users/sajadshokri/following{/other_user}","gists_url":"https://api.github.com/users/sajadshokri/gists{/gist_id}","starred_url":"https://api.github.com/users/sajadshokri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sajadshokri/subscriptions","organizations_url":"https://api.github.com/users/sajadshokri/orgs","repos_url":"https://api.github.com/users/sajadshokri/repos","events_url":"https://api.github.com/users/sajadshokri/events{/privacy}","received_events_url":"https://api.github.com/users/sajadshokri/received_events","type":"User","site_admin":false},"repo":{"id":57433554,"name":"RxAndroidAudio","full_name":"sajadshokri/RxAndroidAudio","owner":{"login":"sajadshokri","id":2149107,"avatar_url":"https://avatars.githubusercontent.com/u/2149107?v=3","gravatar_id":"","url":"https://api.github.com/users/sajadshokri","html_url":"https://github.com/sajadshokri","followers_url":"https://api.github.com/users/sajadshokri/followers","following_url":"https://api.github.com/users/sajadshokri/following{/other_user}","gists_url":"https://api.github.com/users/sajadshokri/gists{/gist_id}","starred_url":"https://api.github.com/users/sajadshokri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sajadshokri/subscriptions","organizations_url":"https://api.github.com/users/sajadshokri/orgs","repos_url":"https://api.github.com/users/sajadshokri/repos","events_url":"https://api.github.com/users/sajadshokri/events{/privacy}","received_events_url":"https://api.github.com/users/sajadshokri/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sajadshokri/RxAndroidAudio","description":"Maybe the most robust Android Audio encapsulation library, with part Rx support.","fork":true,"url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio","forks_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/forks","keys_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/teams","hooks_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/hooks","issue_events_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/issues/events{/number}","events_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/events","assignees_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/assignees{/user}","branches_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/branches{/branch}","tags_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/tags","blobs_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/git/refs{/sha}","trees_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/statuses/{sha}","languages_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/languages","stargazers_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/stargazers","contributors_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/contributors","subscribers_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/subscribers","subscription_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/subscription","commits_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/commits{/sha}","git_commits_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/git/commits{/sha}","comments_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/comments{/number}","issue_comment_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/issues/comments{/number}","contents_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/contents/{+path}","compare_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/merges","archive_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/downloads","issues_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/issues{/number}","pulls_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/pulls{/number}","milestones_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/milestones{/number}","notifications_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/labels{/name}","releases_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/releases{/id}","deployments_url":"https://api.github.com/repos/sajadshokri/RxAndroidAudio/deployments","created_at":"2016-04-30T08:25:52Z","updated_at":"2016-04-30T08:25:53Z","pushed_at":"2016-05-01T10:55:46Z","git_url":"git://github.com/sajadshokri/RxAndroidAudio.git","ssh_url":"git@github.com:sajadshokri/RxAndroidAudio.git","clone_url":"https://github.com/sajadshokri/RxAndroidAudio.git","svn_url":"https://github.com/sajadshokri/RxAndroidAudio","homepage":"http://blog.piasy.com/2016/02/24/Robust-Android-Audio-encapsulation/","size":215,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Piasy:master","ref":"master","sha":"eea241f96a5e257617ad70b0bfbfb2f536feefc7","user":{"login":"Piasy","id":3098704,"avatar_url":"https://avatars.githubusercontent.com/u/3098704?v=3","gravatar_id":"","url":"https://api.github.com/users/Piasy","html_url":"https://github.com/Piasy","followers_url":"https://api.github.com/users/Piasy/followers","following_url":"https://api.github.com/users/Piasy/following{/other_user}","gists_url":"https://api.github.com/users/Piasy/gists{/gist_id}","starred_url":"https://api.github.com/users/Piasy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piasy/subscriptions","organizations_url":"https://api.github.com/users/Piasy/orgs","repos_url":"https://api.github.com/users/Piasy/repos","events_url":"https://api.github.com/users/Piasy/events{/privacy}","received_events_url":"https://api.github.com/users/Piasy/received_events","type":"User","site_admin":false},"repo":{"id":52341773,"name":"RxAndroidAudio","full_name":"Piasy/RxAndroidAudio","owner":{"login":"Piasy","id":3098704,"avatar_url":"https://avatars.githubusercontent.com/u/3098704?v=3","gravatar_id":"","url":"https://api.github.com/users/Piasy","html_url":"https://github.com/Piasy","followers_url":"https://api.github.com/users/Piasy/followers","following_url":"https://api.github.com/users/Piasy/following{/other_user}","gists_url":"https://api.github.com/users/Piasy/gists{/gist_id}","starred_url":"https://api.github.com/users/Piasy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piasy/subscriptions","organizations_url":"https://api.github.com/users/Piasy/orgs","repos_url":"https://api.github.com/users/Piasy/repos","events_url":"https://api.github.com/users/Piasy/events{/privacy}","received_events_url":"https://api.github.com/users/Piasy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Piasy/RxAndroidAudio","description":"Maybe the most robust Android Audio encapsulation library, with part Rx support.","fork":false,"url":"https://api.github.com/repos/Piasy/RxAndroidAudio","forks_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/forks","keys_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/teams","hooks_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/hooks","issue_events_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/issues/events{/number}","events_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/events","assignees_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/assignees{/user}","branches_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/branches{/branch}","tags_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/tags","blobs_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/git/refs{/sha}","trees_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/statuses/{sha}","languages_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/languages","stargazers_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/stargazers","contributors_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/contributors","subscribers_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/subscribers","subscription_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/subscription","commits_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/commits{/sha}","git_commits_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/git/commits{/sha}","comments_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/comments{/number}","issue_comment_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/issues/comments{/number}","contents_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/contents/{+path}","compare_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/merges","archive_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/downloads","issues_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/issues{/number}","pulls_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/pulls{/number}","milestones_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/milestones{/number}","notifications_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/labels{/name}","releases_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/releases{/id}","deployments_url":"https://api.github.com/repos/Piasy/RxAndroidAudio/deployments","created_at":"2016-02-23T08:01:58Z","updated_at":"2016-04-29T06:54:10Z","pushed_at":"2016-05-01T10:55:47Z","git_url":"git://github.com/Piasy/RxAndroidAudio.git","ssh_url":"git@github.com:Piasy/RxAndroidAudio.git","clone_url":"https://github.com/Piasy/RxAndroidAudio.git","svn_url":"https://github.com/Piasy/RxAndroidAudio","homepage":"http://blog.piasy.com/2016/02/24/Robust-Android-Audio-encapsulation/","size":215,"stargazers_count":597,"watchers_count":597,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":76,"mirror_url":null,"open_issues_count":1,"forks":76,"open_issues":1,"watchers":597,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Piasy/RxAndroidAudio/pulls/6"},"html":{"href":"https://github.com/Piasy/RxAndroidAudio/pull/6"},"issue":{"href":"https://api.github.com/repos/Piasy/RxAndroidAudio/issues/6"},"comments":{"href":"https://api.github.com/repos/Piasy/RxAndroidAudio/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/Piasy/RxAndroidAudio/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/Piasy/RxAndroidAudio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Piasy/RxAndroidAudio/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/Piasy/RxAndroidAudio/statuses/002e74dd7b5552241554e02f4ee01e104c41c698"}}}}