{"action":"created","comment":{"url":"https://api.github.com/repos/videojs/mux.js/pulls/comments/51183819","id":51183819,"diff_hunk":"@@ -0,0 +1,123 @@\n+/**\n+ * mux.js\n+ *\n+ * Copyright (c) 2016 Brightcove\n+ * All rights reserved.\n+ *\n+ * A stream-based aac to mp4 converter. This utility can be used to\n+ * deliver mp4s to a SourceBuffer on platforms that support native\n+ * Media Source Extensions.\n+ */\n+'use strict';\n+var Stream = require('../utils/stream.js');\n+\n+// object types\n+var AacStream;\n+\n+var\n+\n+/**\n+ * Splits an incoming stream of binary data into ADTS and ID3 Frames.\n+ */\n+\n+ AacStream = function() {\n+  var\n+    everything,\n+    frameSize = 0,\n+    receivedTimeStamp = false,\n+    timeStamp = 0;\n+\n+  AacStream.prototype.init.call(this);\n+\n+  this.setTimestamp = function (frame) {\n+    var d = frame.data;\n+    var size = ((d[3] & 0x01)  << 30) | (d[4]  << 22) | (d[5] << 14) | (d[6] << 6) | d[7] >>> 2;\n+    size *= 4;\n+    size += d[7] & 0x03;\n+    timeStamp = size;\n+  };\n+\n+\n+  this.push = function(bytes) {\n+    var canParseMore = true;","path":"lib/AACStream/aacs.js","position":42,"original_position":42,"commit_id":"dafa496cf5b1ec04a0bae0e801daf099573603e2","original_commit_id":"dafa496cf5b1ec04a0bae0e801daf099573603e2","user":{"login":"tenacex","id":10394694,"avatar_url":"https://avatars.githubusercontent.com/u/10394694?v=3","gravatar_id":"","url":"https://api.github.com/users/tenacex","html_url":"https://github.com/tenacex","followers_url":"https://api.github.com/users/tenacex/followers","following_url":"https://api.github.com/users/tenacex/following{/other_user}","gists_url":"https://api.github.com/users/tenacex/gists{/gist_id}","starred_url":"https://api.github.com/users/tenacex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenacex/subscriptions","organizations_url":"https://api.github.com/users/tenacex/orgs","repos_url":"https://api.github.com/users/tenacex/repos","events_url":"https://api.github.com/users/tenacex/events{/privacy}","received_events_url":"https://api.github.com/users/tenacex/received_events","type":"User","site_admin":false},"body":"Changed.","created_at":"2016-01-28T20:39:51Z","updated_at":"2016-01-28T20:39:51Z","html_url":"https://github.com/videojs/mux.js/pull/58#discussion_r51183819","pull_request_url":"https://api.github.com/repos/videojs/mux.js/pulls/58","_links":{"self":{"href":"https://api.github.com/repos/videojs/mux.js/pulls/comments/51183819"},"html":{"href":"https://github.com/videojs/mux.js/pull/58#discussion_r51183819"},"pull_request":{"href":"https://api.github.com/repos/videojs/mux.js/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/videojs/mux.js/pulls/58","id":57515087,"html_url":"https://github.com/videojs/mux.js/pull/58","diff_url":"https://github.com/videojs/mux.js/pull/58.diff","patch_url":"https://github.com/videojs/mux.js/pull/58.patch","issue_url":"https://api.github.com/repos/videojs/mux.js/issues/58","number":58,"state":"open","locked":false,"title":"Aac file parsing","user":{"login":"tenacex","id":10394694,"avatar_url":"https://avatars.githubusercontent.com/u/10394694?v=3","gravatar_id":"","url":"https://api.github.com/users/tenacex","html_url":"https://github.com/tenacex","followers_url":"https://api.github.com/users/tenacex/followers","following_url":"https://api.github.com/users/tenacex/following{/other_user}","gists_url":"https://api.github.com/users/tenacex/gists{/gist_id}","starred_url":"https://api.github.com/users/tenacex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenacex/subscriptions","organizations_url":"https://api.github.com/users/tenacex/orgs","repos_url":"https://api.github.com/users/tenacex/repos","events_url":"https://api.github.com/users/tenacex/events{/privacy}","received_events_url":"https://api.github.com/users/tenacex/received_events","type":"User","site_admin":false},"body":"This PR includes support for AAC file parsing. It works with the existing mp4 transmuxer and can successfully output an audio segment. As per request, it currently does not support flv. The debug page has also been extended to support AAC file input, which it can detect automatically.   ","created_at":"2016-01-28T15:12:31Z","updated_at":"2016-01-28T20:39:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4c31df2cc5c2989b6aaaae0f32ea8375f037ea7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/videojs/mux.js/pulls/58/commits","review_comments_url":"https://api.github.com/repos/videojs/mux.js/pulls/58/comments","review_comment_url":"https://api.github.com/repos/videojs/mux.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/videojs/mux.js/issues/58/comments","statuses_url":"https://api.github.com/repos/videojs/mux.js/statuses/dafa496cf5b1ec04a0bae0e801daf099573603e2","head":{"label":"tenacex:aac-file-parsing","ref":"aac-file-parsing","sha":"dafa496cf5b1ec04a0bae0e801daf099573603e2","user":{"login":"tenacex","id":10394694,"avatar_url":"https://avatars.githubusercontent.com/u/10394694?v=3","gravatar_id":"","url":"https://api.github.com/users/tenacex","html_url":"https://github.com/tenacex","followers_url":"https://api.github.com/users/tenacex/followers","following_url":"https://api.github.com/users/tenacex/following{/other_user}","gists_url":"https://api.github.com/users/tenacex/gists{/gist_id}","starred_url":"https://api.github.com/users/tenacex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenacex/subscriptions","organizations_url":"https://api.github.com/users/tenacex/orgs","repos_url":"https://api.github.com/users/tenacex/repos","events_url":"https://api.github.com/users/tenacex/events{/privacy}","received_events_url":"https://api.github.com/users/tenacex/received_events","type":"User","site_admin":false},"repo":{"id":49234702,"name":"mux.js","full_name":"tenacex/mux.js","owner":{"login":"tenacex","id":10394694,"avatar_url":"https://avatars.githubusercontent.com/u/10394694?v=3","gravatar_id":"","url":"https://api.github.com/users/tenacex","html_url":"https://github.com/tenacex","followers_url":"https://api.github.com/users/tenacex/followers","following_url":"https://api.github.com/users/tenacex/following{/other_user}","gists_url":"https://api.github.com/users/tenacex/gists{/gist_id}","starred_url":"https://api.github.com/users/tenacex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenacex/subscriptions","organizations_url":"https://api.github.com/users/tenacex/orgs","repos_url":"https://api.github.com/users/tenacex/repos","events_url":"https://api.github.com/users/tenacex/events{/privacy}","received_events_url":"https://api.github.com/users/tenacex/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tenacex/mux.js","description":"Lightweight utilities for inspecting and manipulating video container formats.","fork":true,"url":"https://api.github.com/repos/tenacex/mux.js","forks_url":"https://api.github.com/repos/tenacex/mux.js/forks","keys_url":"https://api.github.com/repos/tenacex/mux.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tenacex/mux.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tenacex/mux.js/teams","hooks_url":"https://api.github.com/repos/tenacex/mux.js/hooks","issue_events_url":"https://api.github.com/repos/tenacex/mux.js/issues/events{/number}","events_url":"https://api.github.com/repos/tenacex/mux.js/events","assignees_url":"https://api.github.com/repos/tenacex/mux.js/assignees{/user}","branches_url":"https://api.github.com/repos/tenacex/mux.js/branches{/branch}","tags_url":"https://api.github.com/repos/tenacex/mux.js/tags","blobs_url":"https://api.github.com/repos/tenacex/mux.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tenacex/mux.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tenacex/mux.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/tenacex/mux.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tenacex/mux.js/statuses/{sha}","languages_url":"https://api.github.com/repos/tenacex/mux.js/languages","stargazers_url":"https://api.github.com/repos/tenacex/mux.js/stargazers","contributors_url":"https://api.github.com/repos/tenacex/mux.js/contributors","subscribers_url":"https://api.github.com/repos/tenacex/mux.js/subscribers","subscription_url":"https://api.github.com/repos/tenacex/mux.js/subscription","commits_url":"https://api.github.com/repos/tenacex/mux.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/tenacex/mux.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/tenacex/mux.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/tenacex/mux.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/tenacex/mux.js/contents/{+path}","compare_url":"https://api.github.com/repos/tenacex/mux.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tenacex/mux.js/merges","archive_url":"https://api.github.com/repos/tenacex/mux.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tenacex/mux.js/downloads","issues_url":"https://api.github.com/repos/tenacex/mux.js/issues{/number}","pulls_url":"https://api.github.com/repos/tenacex/mux.js/pulls{/number}","milestones_url":"https://api.github.com/repos/tenacex/mux.js/milestones{/number}","notifications_url":"https://api.github.com/repos/tenacex/mux.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tenacex/mux.js/labels{/name}","releases_url":"https://api.github.com/repos/tenacex/mux.js/releases{/id}","deployments_url":"https://api.github.com/repos/tenacex/mux.js/deployments","created_at":"2016-01-07T22:28:47Z","updated_at":"2016-01-07T22:28:48Z","pushed_at":"2016-01-28T19:40:25Z","git_url":"git://github.com/tenacex/mux.js.git","ssh_url":"git@github.com:tenacex/mux.js.git","clone_url":"https://github.com/tenacex/mux.js.git","svn_url":"https://github.com/tenacex/mux.js","homepage":null,"size":1264,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"videojs:master","ref":"master","sha":"450c1cf620a21946af0edf98096b62ae5443a845","user":{"login":"videojs","id":3287189,"avatar_url":"https://avatars.githubusercontent.com/u/3287189?v=3","gravatar_id":"","url":"https://api.github.com/users/videojs","html_url":"https://github.com/videojs","followers_url":"https://api.github.com/users/videojs/followers","following_url":"https://api.github.com/users/videojs/following{/other_user}","gists_url":"https://api.github.com/users/videojs/gists{/gist_id}","starred_url":"https://api.github.com/users/videojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/videojs/subscriptions","organizations_url":"https://api.github.com/users/videojs/orgs","repos_url":"https://api.github.com/users/videojs/repos","events_url":"https://api.github.com/users/videojs/events{/privacy}","received_events_url":"https://api.github.com/users/videojs/received_events","type":"Organization","site_admin":false},"repo":{"id":40461390,"name":"mux.js","full_name":"videojs/mux.js","owner":{"login":"videojs","id":3287189,"avatar_url":"https://avatars.githubusercontent.com/u/3287189?v=3","gravatar_id":"","url":"https://api.github.com/users/videojs","html_url":"https://github.com/videojs","followers_url":"https://api.github.com/users/videojs/followers","following_url":"https://api.github.com/users/videojs/following{/other_user}","gists_url":"https://api.github.com/users/videojs/gists{/gist_id}","starred_url":"https://api.github.com/users/videojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/videojs/subscriptions","organizations_url":"https://api.github.com/users/videojs/orgs","repos_url":"https://api.github.com/users/videojs/repos","events_url":"https://api.github.com/users/videojs/events{/privacy}","received_events_url":"https://api.github.com/users/videojs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/videojs/mux.js","description":"Lightweight utilities for inspecting and manipulating video container formats.","fork":false,"url":"https://api.github.com/repos/videojs/mux.js","forks_url":"https://api.github.com/repos/videojs/mux.js/forks","keys_url":"https://api.github.com/repos/videojs/mux.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/videojs/mux.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/videojs/mux.js/teams","hooks_url":"https://api.github.com/repos/videojs/mux.js/hooks","issue_events_url":"https://api.github.com/repos/videojs/mux.js/issues/events{/number}","events_url":"https://api.github.com/repos/videojs/mux.js/events","assignees_url":"https://api.github.com/repos/videojs/mux.js/assignees{/user}","branches_url":"https://api.github.com/repos/videojs/mux.js/branches{/branch}","tags_url":"https://api.github.com/repos/videojs/mux.js/tags","blobs_url":"https://api.github.com/repos/videojs/mux.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/videojs/mux.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/videojs/mux.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/videojs/mux.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/videojs/mux.js/statuses/{sha}","languages_url":"https://api.github.com/repos/videojs/mux.js/languages","stargazers_url":"https://api.github.com/repos/videojs/mux.js/stargazers","contributors_url":"https://api.github.com/repos/videojs/mux.js/contributors","subscribers_url":"https://api.github.com/repos/videojs/mux.js/subscribers","subscription_url":"https://api.github.com/repos/videojs/mux.js/subscription","commits_url":"https://api.github.com/repos/videojs/mux.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/videojs/mux.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/videojs/mux.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/videojs/mux.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/videojs/mux.js/contents/{+path}","compare_url":"https://api.github.com/repos/videojs/mux.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/videojs/mux.js/merges","archive_url":"https://api.github.com/repos/videojs/mux.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/videojs/mux.js/downloads","issues_url":"https://api.github.com/repos/videojs/mux.js/issues{/number}","pulls_url":"https://api.github.com/repos/videojs/mux.js/pulls{/number}","milestones_url":"https://api.github.com/repos/videojs/mux.js/milestones{/number}","notifications_url":"https://api.github.com/repos/videojs/mux.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/videojs/mux.js/labels{/name}","releases_url":"https://api.github.com/repos/videojs/mux.js/releases{/id}","deployments_url":"https://api.github.com/repos/videojs/mux.js/deployments","created_at":"2015-08-10T03:31:07Z","updated_at":"2016-01-25T23:28:18Z","pushed_at":"2016-01-28T16:14:49Z","git_url":"git://github.com/videojs/mux.js.git","ssh_url":"git@github.com:videojs/mux.js.git","clone_url":"https://github.com/videojs/mux.js.git","svn_url":"https://github.com/videojs/mux.js","homepage":null,"size":1291,"stargazers_count":26,"watchers_count":26,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":10,"forks":15,"open_issues":10,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/videojs/mux.js/pulls/58"},"html":{"href":"https://github.com/videojs/mux.js/pull/58"},"issue":{"href":"https://api.github.com/repos/videojs/mux.js/issues/58"},"comments":{"href":"https://api.github.com/repos/videojs/mux.js/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/videojs/mux.js/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/videojs/mux.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/videojs/mux.js/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/videojs/mux.js/statuses/dafa496cf5b1ec04a0bae0e801daf099573603e2"}}}}