{"action":"created","issue":{"url":"https://api.github.com/repos/bradmartin/nativescript-audio/issues/4","repository_url":"https://api.github.com/repos/bradmartin/nativescript-audio","labels_url":"https://api.github.com/repos/bradmartin/nativescript-audio/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/bradmartin/nativescript-audio/issues/4/comments","events_url":"https://api.github.com/repos/bradmartin/nativescript-audio/issues/4/events","html_url":"https://github.com/bradmartin/nativescript-audio/issues/4","id":151266194,"number":4,"title":"Android Crashes","user":{"login":"dylanryan","id":1887099,"avatar_url":"https://avatars.githubusercontent.com/u/1887099?v=3","gravatar_id":"","url":"https://api.github.com/users/dylanryan","html_url":"https://github.com/dylanryan","followers_url":"https://api.github.com/users/dylanryan/followers","following_url":"https://api.github.com/users/dylanryan/following{/other_user}","gists_url":"https://api.github.com/users/dylanryan/gists{/gist_id}","starred_url":"https://api.github.com/users/dylanryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylanryan/subscriptions","organizations_url":"https://api.github.com/users/dylanryan/orgs","repos_url":"https://api.github.com/users/dylanryan/repos","events_url":"https://api.github.com/users/dylanryan/events{/privacy}","received_events_url":"https://api.github.com/users/dylanryan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-26T23:51:54Z","updated_at":"2016-04-27T03:27:09Z","closed_at":null,"body":"2 semi-related issues.\r\n\r\nOn android, playFromFile requires all the callbacks to be present, because it unconditionally sets the callbacks (unlike playFromUrl which only sets them if they are present). These should be optional (since the docs imply they are)\r\n\r\nSecond, the onErrorListener and onInfoListener are supposed to take functions that return boolean (see http://developer.android.com/reference/android/media/MediaPlayer.OnErrorListener.html and http://developer.android.com/reference/android/media/MediaPlayer.OnInfoListener.html ), and it crashes trying to get the boolean value of the return value. This applies to both playFromFile and playFromUrl. "},"comment":{"url":"https://api.github.com/repos/bradmartin/nativescript-audio/issues/comments/214960281","html_url":"https://github.com/bradmartin/nativescript-audio/issues/4#issuecomment-214960281","issue_url":"https://api.github.com/repos/bradmartin/nativescript-audio/issues/4","id":214960281,"user":{"login":"dylanryan","id":1887099,"avatar_url":"https://avatars.githubusercontent.com/u/1887099?v=3","gravatar_id":"","url":"https://api.github.com/users/dylanryan","html_url":"https://github.com/dylanryan","followers_url":"https://api.github.com/users/dylanryan/followers","following_url":"https://api.github.com/users/dylanryan/following{/other_user}","gists_url":"https://api.github.com/users/dylanryan/gists{/gist_id}","starred_url":"https://api.github.com/users/dylanryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylanryan/subscriptions","organizations_url":"https://api.github.com/users/dylanryan/orgs","repos_url":"https://api.github.com/users/dylanryan/repos","events_url":"https://api.github.com/users/dylanryan/events{/privacy}","received_events_url":"https://api.github.com/users/dylanryan/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T03:27:09Z","updated_at":"2016-04-27T03:27:09Z","body":"Will do. I also am going to do a quick implementation of completion and error callbacks on iOS. I don't see any equivalent of the info callback in the docs, so I won't do that on iOS."}}