{"action":"created","issue":{"url":"https://api.github.com/repos/apache/cordova-plugin-media/issues/200","repository_url":"https://api.github.com/repos/apache/cordova-plugin-media","labels_url":"https://api.github.com/repos/apache/cordova-plugin-media/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/apache/cordova-plugin-media/issues/200/comments","events_url":"https://api.github.com/repos/apache/cordova-plugin-media/issues/200/events","html_url":"https://github.com/apache/cordova-plugin-media/issues/200","id":383891415,"node_id":"MDU6SXNzdWUzODM4OTE0MTU=","number":200,"title":"getDuration() returns -1, then 0 on some remote MP3 files","user":{"login":"jb280","id":3235662,"node_id":"MDQ6VXNlcjMyMzU2NjI=","avatar_url":"https://avatars1.githubusercontent.com/u/3235662?v=4","gravatar_id":"","url":"https://api.github.com/users/jb280","html_url":"https://github.com/jb280","followers_url":"https://api.github.com/users/jb280/followers","following_url":"https://api.github.com/users/jb280/following{/other_user}","gists_url":"https://api.github.com/users/jb280/gists{/gist_id}","starred_url":"https://api.github.com/users/jb280/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jb280/subscriptions","organizations_url":"https://api.github.com/users/jb280/orgs","repos_url":"https://api.github.com/users/jb280/repos","events_url":"https://api.github.com/users/jb280/events{/privacy}","received_events_url":"https://api.github.com/users/jb280/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-23T17:14:32Z","updated_at":"2018-11-23T19:15:04Z","closed_at":null,"author_association":"NONE","body":"I'm on iOS  (using  Ionic) and start playing remote files (hosted on AWS). I  set a timer to get the duration. If getDuration() returns -1, I call the timer again. On most of the files, the audio starts playing and eventually, I get the correct duration of the MP3 .  \r\n\r\nHowever, on some files, it will eventually return 0  for the duration and the audio never plays. If I download that same file first and then play it, there is no problem playing or getting the duration.\r\n\r\nAll files are 64bit encoded MP3.\r\n\r\nWhat would cause a remote file not to play and return 0 for getDuration()?"},"comment":{"url":"https://api.github.com/repos/apache/cordova-plugin-media/issues/comments/441305876","html_url":"https://github.com/apache/cordova-plugin-media/issues/200#issuecomment-441305876","issue_url":"https://api.github.com/repos/apache/cordova-plugin-media/issues/200","id":441305876,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTMwNTg3Ng==","user":{"login":"janpio","id":183673,"node_id":"MDQ6VXNlcjE4MzY3Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/183673?v=4","gravatar_id":"","url":"https://api.github.com/users/janpio","html_url":"https://github.com/janpio","followers_url":"https://api.github.com/users/janpio/followers","following_url":"https://api.github.com/users/janpio/following{/other_user}","gists_url":"https://api.github.com/users/janpio/gists{/gist_id}","starred_url":"https://api.github.com/users/janpio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janpio/subscriptions","organizations_url":"https://api.github.com/users/janpio/orgs","repos_url":"https://api.github.com/users/janpio/repos","events_url":"https://api.github.com/users/janpio/events{/privacy}","received_events_url":"https://api.github.com/users/janpio/received_events","type":"User","site_admin":false},"created_at":"2018-11-23T19:15:04Z","updated_at":"2018-11-23T19:15:04Z","author_association":"CONTRIBUTOR","body":"Can you help out building a super simple reproduction app with `cordova create`? Just two play buttons, the functionality to show the duration somehow should be enough. Otherwise anyone looking into this has to do that first."}}
{"actor":{"display_login":"janpio"}}