{"action":"created","issue":{"url":"https://api.github.com/repos/apache/cordova-plugin-media/issues/62","labels_url":"https://api.github.com/repos/apache/cordova-plugin-media/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/apache/cordova-plugin-media/issues/62/comments","events_url":"https://api.github.com/repos/apache/cordova-plugin-media/issues/62/events","html_url":"https://github.com/apache/cordova-plugin-media/pull/62","id":97877220,"number":62,"title":"Streaming & Background threading on play","user":{"login":"ghenry22","id":7463213,"avatar_url":"https://avatars.githubusercontent.com/u/7463213?v=3","gravatar_id":"","url":"https://api.github.com/users/ghenry22","html_url":"https://github.com/ghenry22","followers_url":"https://api.github.com/users/ghenry22/followers","following_url":"https://api.github.com/users/ghenry22/following{/other_user}","gists_url":"https://api.github.com/users/ghenry22/gists{/gist_id}","starred_url":"https://api.github.com/users/ghenry22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghenry22/subscriptions","organizations_url":"https://api.github.com/users/ghenry22/orgs","repos_url":"https://api.github.com/users/ghenry22/repos","events_url":"https://api.github.com/users/ghenry22/events{/privacy}","received_events_url":"https://api.github.com/users/ghenry22/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":48,"created_at":"2015-07-29T07:20:00Z","updated_at":"2015-12-03T17:50:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/cordova-plugin-media/pulls/62","html_url":"https://github.com/apache/cordova-plugin-media/pull/62","diff_url":"https://github.com/apache/cordova-plugin-media/pull/62.diff","patch_url":"https://github.com/apache/cordova-plugin-media/pull/62.patch"},"body":"This fixes 2 issues in the Cordova Jira, both with iOS.  It enables streaming support for media playback from URLs while retaining the existing playback for local media.\r\n\r\nThe second part is the simply background thread the play function so it doesn't block the ui or lock up the app on load.  Gets rid of some of those pesky warnings in xcode too.\r\n\r\nTested with simulator and on iphone 5 and iphone 6 and ipad 2, with iOS 8.1, 8.3 & 8.4\r\n\r\nPlease merge these and bump the version of the media plugin so I can stop installing them from my own fork :)\r\n\r\nFix for CB-57\r\nUpdated to use avplayer when url starts with http:// or https:// for\r\nfull streaming support.\r\n\r\nAll other urls will use the standard AVAudioplayer\r\n\r\nFix for CB-8222\r\nBackground thread on play to prevent locking during initial load of\r\nmedia."},"comment":{"url":"https://api.github.com/repos/apache/cordova-plugin-media/issues/comments/161729984","html_url":"https://github.com/apache/cordova-plugin-media/pull/62#issuecomment-161729984","issue_url":"https://api.github.com/repos/apache/cordova-plugin-media/issues/62","id":161729984,"user":{"login":"snstarosciak","id":5612198,"avatar_url":"https://avatars.githubusercontent.com/u/5612198?v=3","gravatar_id":"","url":"https://api.github.com/users/snstarosciak","html_url":"https://github.com/snstarosciak","followers_url":"https://api.github.com/users/snstarosciak/followers","following_url":"https://api.github.com/users/snstarosciak/following{/other_user}","gists_url":"https://api.github.com/users/snstarosciak/gists{/gist_id}","starred_url":"https://api.github.com/users/snstarosciak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snstarosciak/subscriptions","organizations_url":"https://api.github.com/users/snstarosciak/orgs","repos_url":"https://api.github.com/users/snstarosciak/repos","events_url":"https://api.github.com/users/snstarosciak/events{/privacy}","received_events_url":"https://api.github.com/users/snstarosciak/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T17:50:31Z","updated_at":"2015-12-03T17:50:31Z","body":"@ghenry22 Hellooo sir. I know this isn't really the appropriate place to ask this question, but it was the only way I knew I could contact you and have the question still be relevant. The media plugin stuff works great with iOS 9 :) \r\n\r\nMy problem that I can't seem to solve, no matter how hard I try is basically trying to play a mp4 file in an HTML 5 video player like so:\r\n\r\n`<video controls=\"controls\" preload=\"metadata\" webkit-playsinline=\"webkit-playsinline\" >\r\n            <source ng-src=\"{{resourceURL | trustAsResourceUrl}}\" type=\"video/mp4\"/>\r\n          </video>`\r\n\r\nresourceURL looks like \"cdvfile://localhost/library-nosync/resources/resource-0/resource-0.mp4\"\r\n\r\nwhen I try playing the same exact video that I'm hosting from an external server, the video plays no problem in iOS 9.\r\n\r\nIs there some kind of weird file system filepath issue I'm not thinking of? Do HTML 5 audio/video tags not like \"ng-src\"? Even when I try to do a direct src to the file in my emulator, it doesn't play. Since the html 5 video player only seems to work at all when running ionic emulate ios, instead of ionic emulate ios -lcs, I can't see any logs if it's spitting out an error, because it definitely isn't when I run it with -lcs.\r\n\r\nHere is the code for trying to src it directly to the file that exists on the emulator (or at least when I run the emulator in -lcs mode)\r\n\r\n`<video controls=\"controls\" preload=\"metadata\" webkit-playsinline=\"webkit-playsinline\" >\r\n            <source src=\"cdvfile://localhost/library-nosync/resources/resource-0/resource-0.mp4\" type=\"video/mp4\"/>\r\n          </video>`\r\n\r\nAre there any alternatives or things I can try? I'd love to answer my question in both the ionic and stackoverflow forums for other people who may have the same issue"}}