{"action":"created","issue":{"url":"https://api.github.com/repos/sannies/mp4parser/issues/7","labels_url":"https://api.github.com/repos/sannies/mp4parser/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/sannies/mp4parser/issues/7/comments","events_url":"https://api.github.com/repos/sannies/mp4parser/issues/7/events","html_url":"https://github.com/sannies/mp4parser/issues/7","id":42542438,"number":7,"title":"Feature Request- Streaming DataSource for Track Impls","user":{"login":"beeblebrox","id":498565,"avatar_url":"https://avatars.githubusercontent.com/u/498565?v=3","gravatar_id":"","url":"https://api.github.com/users/beeblebrox","html_url":"https://github.com/beeblebrox","followers_url":"https://api.github.com/users/beeblebrox/followers","following_url":"https://api.github.com/users/beeblebrox/following{/other_user}","gists_url":"https://api.github.com/users/beeblebrox/gists{/gist_id}","starred_url":"https://api.github.com/users/beeblebrox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beeblebrox/subscriptions","organizations_url":"https://api.github.com/users/beeblebrox/orgs","repos_url":"https://api.github.com/users/beeblebrox/repos","events_url":"https://api.github.com/users/beeblebrox/events{/privacy}","received_events_url":"https://api.github.com/users/beeblebrox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-09-11T16:15:28Z","updated_at":"2015-01-24T13:08:41Z","closed_at":null,"body":"I'd like to be able to implement a DataSource which can be passed to the Track Impls that may have data pending semantics.  Currently DataSource, and its use in the tack Impls, require the complete size of the data to be known in advanced.  My use case is that I am streaming the data from a source. In that case, the size is unknown to me and so current DataSource semantics requires me to stream all the data from the source before processing it.\r\n\r\nAm I missing something that should allow this? \r\n\r\nIf not, I propose a new constructor on the track Impls which would take in an NIO byte channel.  Or alternatively, a new ByteBufferDataSource interface type which can be used to construct these Impls which would gracefully handle partial data until the ByteBufferDataSourceImpl indicates eof by some other means.  That construction may not make sense for all Track types, but it would, for example for the H264 track."},"comment":{"url":"https://api.github.com/repos/sannies/mp4parser/issues/comments/71315826","html_url":"https://github.com/sannies/mp4parser/issues/7#issuecomment-71315826","issue_url":"https://api.github.com/repos/sannies/mp4parser/issues/7","id":71315826,"user":{"login":"sannies","id":168975,"avatar_url":"https://avatars.githubusercontent.com/u/168975?v=3","gravatar_id":"","url":"https://api.github.com/users/sannies","html_url":"https://github.com/sannies","followers_url":"https://api.github.com/users/sannies/followers","following_url":"https://api.github.com/users/sannies/following{/other_user}","gists_url":"https://api.github.com/users/sannies/gists{/gist_id}","starred_url":"https://api.github.com/users/sannies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sannies/subscriptions","organizations_url":"https://api.github.com/users/sannies/orgs","repos_url":"https://api.github.com/users/sannies/repos","events_url":"https://api.github.com/users/sannies/events{/privacy}","received_events_url":"https://api.github.com/users/sannies/received_events","type":"User","site_admin":false},"created_at":"2015-01-24T13:08:41Z","updated_at":"2015-01-24T13:08:41Z","body":"Please include the stack trace your error description is as clear as 'my\r\ncar doesn't work'\r\nAm 24.01.2015 12:30 schrieb \"mohanraj546\" <notifications@github.com>:\r\n\r\n> hia sannies\r\n>\r\n> i am getting null pointer exception at\r\n>\r\n> H264TrackImpl h264Track = new H264TrackImpl(new\r\n> FileDataSourceImpl(android.os.Environment.getExternalStorageDirectory().getAbsolutePath()\r\n> + \"/test.h264\"));\r\n>\r\n> but the file is there in the device.So what is the problem?\r\n>\r\n> Thanks in Advance\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/sannies/mp4parser/issues/7#issuecomment-71312339>.\r\n>"}}