{"action":"created","issue":{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/502","labels_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/502/labels{/name}","comments_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/502/comments","events_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/502/events","html_url":"https://github.com/CollectionFS/Meteor-CollectionFS/issues/502","id":53515523,"number":502,"title":"HTML5 video streaming with collectionFS ","user":{"login":"riaan53","id":7716342,"avatar_url":"https://avatars.githubusercontent.com/u/7716342?v=3","gravatar_id":"","url":"https://api.github.com/users/riaan53","html_url":"https://github.com/riaan53","followers_url":"https://api.github.com/users/riaan53/followers","following_url":"https://api.github.com/users/riaan53/following{/other_user}","gists_url":"https://api.github.com/users/riaan53/gists{/gist_id}","starred_url":"https://api.github.com/users/riaan53/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riaan53/subscriptions","organizations_url":"https://api.github.com/users/riaan53/orgs","repos_url":"https://api.github.com/users/riaan53/repos","events_url":"https://api.github.com/users/riaan53/events{/privacy}","received_events_url":"https://api.github.com/users/riaan53/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-06T13:41:23Z","updated_at":"2015-02-21T14:18:59Z","closed_at":null,"body":"Hi,\r\n\r\nIm busy with uploading videos, encoding them with ffmpeg to mp5, ogg and webm, and then serving them to the site again with a html5 video tag. I have been testing the whole time with small videos and did not notice the problem at first.\r\n\r\nWhen I upload larger video, for example 94MB, a http get for the full file length will be called when using the url returned from fsFile.url() method. If you immediately click on the play button the whole movie will play. But if you wait for a while and then click play only the start of the movie will play and then no further chucks will be downloaded/streamed. This will result in a net::ERR_CONTENT_LENGTH_MISMATCH error because the length of the downloaded piece is not the expected length.\r\n\r\nIf you look at the header you can see the problem:\r\naccept-ranges:bytes\r\ncontent-length:97508214\r\ncontent-range:bytes 0-97508213/97508214\r\ncontent-type:video/mp4\r\n\r\nIt should be something like this (https://gist.github.com/paolorossi/1993068):\r\n\r\n```javascript\r\n var file = fs.createReadStream(path, {start: start, end: end}); //gridfs example - https://gist.github.com/psi-4ward/7099001\r\n    res.writeHead(206, { \r\n'Content-Range': 'bytes ' + start + '-' + end + '/' + total, \r\n'Accept-Ranges': 'bytes', \r\n'Content-Length': chunksize, \r\n'Content-Type': 'video/mp4' });\r\n```\r\n\r\nAny suggestions or something I missed?\r\n\r\nThank you.\r\n\r\nRegards,\r\nRiaan"},"comment":{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/comments/75373511","html_url":"https://github.com/CollectionFS/Meteor-CollectionFS/issues/502#issuecomment-75373511","issue_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/502","id":75373511,"user":{"login":"gabrielstuff","id":285033,"avatar_url":"https://avatars.githubusercontent.com/u/285033?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielstuff","html_url":"https://github.com/gabrielstuff","followers_url":"https://api.github.com/users/gabrielstuff/followers","following_url":"https://api.github.com/users/gabrielstuff/following{/other_user}","gists_url":"https://api.github.com/users/gabrielstuff/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielstuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielstuff/subscriptions","organizations_url":"https://api.github.com/users/gabrielstuff/orgs","repos_url":"https://api.github.com/users/gabrielstuff/repos","events_url":"https://api.github.com/users/gabrielstuff/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielstuff/received_events","type":"User","site_admin":false},"created_at":"2015-02-21T14:18:59Z","updated_at":"2015-02-21T14:18:59Z","body":"Hi @riaan53,\r\n\r\nI encounter same issue and I'm not able to play video on iOS devices (iPad Air and iPhone 4S with iOS8)\r\nThe site works well on chrome and firefox (webm format) but safari (desktop and iOS) fail to load anything.\r\n\r\nIt looks like you fix a lot of things. Could you share the branch / commit that we should use ?\r\n\r\nThanks"}}