{"action":"closed","issue":{"url":"https://api.github.com/repos/RReverser/mpegts/issues/27","labels_url":"https://api.github.com/repos/RReverser/mpegts/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/RReverser/mpegts/issues/27/comments","events_url":"https://api.github.com/repos/RReverser/mpegts/issues/27/events","html_url":"https://github.com/RReverser/mpegts/issues/27","id":103419727,"number":27,"title":"[Node-webkit] Source ts from web with callback of javascript Uint8Array","user":{"login":"Bigmacbook","id":541279,"avatar_url":"https://avatars.githubusercontent.com/u/541279?v=3","gravatar_id":"","url":"https://api.github.com/users/Bigmacbook","html_url":"https://github.com/Bigmacbook","followers_url":"https://api.github.com/users/Bigmacbook/followers","following_url":"https://api.github.com/users/Bigmacbook/following{/other_user}","gists_url":"https://api.github.com/users/Bigmacbook/gists{/gist_id}","starred_url":"https://api.github.com/users/Bigmacbook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bigmacbook/subscriptions","organizations_url":"https://api.github.com/users/Bigmacbook/orgs","repos_url":"https://api.github.com/users/Bigmacbook/repos","events_url":"https://api.github.com/users/Bigmacbook/events{/privacy}","received_events_url":"https://api.github.com/users/Bigmacbook/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-27T03:30:09Z","updated_at":"2015-08-27T11:03:08Z","closed_at":"2015-08-27T11:03:08Z","body":"I working in node-webkit so I have access to DOM and Node.js. \r\n\r\nI want to be able to get ts chunks from website then covert to mp4 and output the data as a Uint8Array to use with the new MediaSource API\r\n\r\nexample of what it would look like\r\n\r\n```\r\n\r\nvar ms = new MediaSource();\r\n\r\nvar video = document.getElementById('stream')\r\nvideo.src = window.URL.createObjectURL(ms);\r\n\r\nms.addEventListener('sourceopen', function(e) {\r\n\r\n    sourceBuffer = ms.addSourceBuffer(['video/mp4; codecs=\"avc1.42E01E,mp4a.40.2\"']);\r\n   \r\n    mpegts_to_mp4('http://example.com/src.ts',  function (err, array) {\r\n        sourceBuffer.appendBuffer(array); //must be Uint8Array\r\n    });\r\n\r\n}, false);\r\n```"}}