{"action":"created","comment":{"url":"https://api.github.com/repos/w3c/mediacapture-fromelement/pulls/comments/39359569","id":39359569,"diff_hunk":"@@ -106,71 +106,109 @@\n           or other <a>track</a> types that support multiple selections)\n           <a>track</a>s from the media element.  If the media element does not\n           have a selected or enabled <a>track</a>s of a given type, then no\n-          <code>MediaStreamTrack</code> is present in the captured stream.\n+          <code>MediaStreamTrack</code> of that type is present in the captured\n+          stream.\n         </p>\n         <p>\n           A <code>&lt;video&gt;</code> element can therefore capture a video\n           <code>MediaStreamTrack</code> and any number of audio\n-          <code>MediaStreamTrack</code>s. An <code>&lt;audio&gt;</code> element\n+          <code>MediaStreamTrack</code>s.  An <code>&lt;audio&gt;</code> element\n           can capture any number of audio <code>MediaStreamTrack</code>s.  In\n           both cases, the set of captured <code>MediaStreamTrack</code>s could\n           be empty.\n         </p>\n         <p>\n-          <code>captureStream</code> produces a <code>MediaStream</code> that\n-          captures any media that is currently playing on the element.  Changes\n-          in the media element source do not cause the stream to terminate,\n-          though the set of <code>MediaStreamTrack</code>s might change over\n-          time.  If the source stream for the media element ends, or the a\n-          different source is selected, the <code>MediaStream</code> captures\n-          the state of the media element.  This means that there could be\n-          periods where the captured stream has no active media content.\n+          Changes in the media element source do not cause the stream to\n+          terminate, though the set of <code>MediaStreamTrack</code>s might\n+          change over time.  If the source stream for the media element ends, or","path":"index.html","position":28,"original_position":28,"commit_id":"2f8a1149b3d9aeea895629ead1967014dce488a1","original_commit_id":"2f8a1149b3d9aeea895629ead1967014dce488a1","user":{"login":"Pehrsons","id":864924,"avatar_url":"https://avatars.githubusercontent.com/u/864924?v=3","gravatar_id":"","url":"https://api.github.com/users/Pehrsons","html_url":"https://github.com/Pehrsons","followers_url":"https://api.github.com/users/Pehrsons/followers","following_url":"https://api.github.com/users/Pehrsons/following{/other_user}","gists_url":"https://api.github.com/users/Pehrsons/gists{/gist_id}","starred_url":"https://api.github.com/users/Pehrsons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pehrsons/subscriptions","organizations_url":"https://api.github.com/users/Pehrsons/orgs","repos_url":"https://api.github.com/users/Pehrsons/repos","events_url":"https://api.github.com/users/Pehrsons/events{/privacy}","received_events_url":"https://api.github.com/users/Pehrsons/received_events","type":"User","site_admin":false},"body":"\"source stream for the media element\" - a little confusing what kind of stream this is talking about. Can we just say \"source\" instead?","created_at":"2015-09-14T03:48:51Z","updated_at":"2015-09-14T03:48:51Z","html_url":"https://github.com/w3c/mediacapture-fromelement/pull/12#discussion_r39359569","pull_request_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/w3c/mediacapture-fromelement/pulls/comments/39359569"},"html":{"href":"https://github.com/w3c/mediacapture-fromelement/pull/12#discussion_r39359569"},"pull_request":{"href":"https://api.github.com/repos/w3c/mediacapture-fromelement/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/w3c/mediacapture-fromelement/pulls/12","id":44501125,"html_url":"https://github.com/w3c/mediacapture-fromelement/pull/12","diff_url":"https://github.com/w3c/mediacapture-fromelement/pull/12.diff","patch_url":"https://github.com/w3c/mediacapture-fromelement/pull/12.patch","issue_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/issues/12","number":12,"state":"open","locked":false,"title":"Change track capture rules to match playback more closely.","user":{"login":"martinthomson","id":67641,"avatar_url":"https://avatars.githubusercontent.com/u/67641?v=3","gravatar_id":"","url":"https://api.github.com/users/martinthomson","html_url":"https://github.com/martinthomson","followers_url":"https://api.github.com/users/martinthomson/followers","following_url":"https://api.github.com/users/martinthomson/following{/other_user}","gists_url":"https://api.github.com/users/martinthomson/gists{/gist_id}","starred_url":"https://api.github.com/users/martinthomson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinthomson/subscriptions","organizations_url":"https://api.github.com/users/martinthomson/orgs","repos_url":"https://api.github.com/users/martinthomson/repos","events_url":"https://api.github.com/users/martinthomson/events{/privacy}","received_events_url":"https://api.github.com/users/martinthomson/received_events","type":"User","site_admin":false},"body":"The set of tracks now matches exactly what is present in the source.\r\nTracks that don't have any content are reflected using the \"muted\" attribute.\r\nThis allows for capture of media that has a track that is selected, but not\r\ncurrently playing.  It also cleanly deals with seeking because the set of tracks\r\ndoesn't need to change when seeking, just the muted property.\r\n\r\nWe had no good way to handle disabled and muted tracks previously.  This\r\ncorrects that.\r\n\r\ncaptureStreamUntilEnded() just waits until playback ends.  It isn't affected\r\nby source changes or seeking.\r\n\r\nAlso switched canvas capture to capture nothing when not origin-clean.\r\n\r\nCloses #10.","created_at":"2015-09-09T01:16:26Z","updated_at":"2015-09-14T03:48:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f8a184b04625c93fae2d7b109356b0f4eb96298","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/pulls/12/commits","review_comments_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/pulls/12/comments","review_comment_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/pulls/comments{/number}","comments_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/issues/12/comments","statuses_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/statuses/2f8a1149b3d9aeea895629ead1967014dce488a1","head":{"label":"w3c:match_playback","ref":"match_playback","sha":"2f8a1149b3d9aeea895629ead1967014dce488a1","user":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=3","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"repo":{"id":26036168,"name":"mediacapture-fromelement","full_name":"w3c/mediacapture-fromelement","owner":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=3","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/w3c/mediacapture-fromelement","description":"API to create a MediaStream from Media Element","fork":false,"url":"https://api.github.com/repos/w3c/mediacapture-fromelement","forks_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/forks","keys_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/teams","hooks_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/hooks","issue_events_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/issues/events{/number}","events_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/events","assignees_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/assignees{/user}","branches_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/branches{/branch}","tags_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/tags","blobs_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/git/refs{/sha}","trees_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/statuses/{sha}","languages_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/languages","stargazers_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/stargazers","contributors_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/contributors","subscribers_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/subscribers","subscription_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/subscription","commits_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/commits{/sha}","git_commits_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/git/commits{/sha}","comments_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/comments{/number}","issue_comment_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/issues/comments{/number}","contents_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/contents/{+path}","compare_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/merges","archive_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/downloads","issues_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/issues{/number}","pulls_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/pulls{/number}","milestones_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/milestones{/number}","notifications_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/labels{/name}","releases_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/releases{/id}","created_at":"2014-10-31T23:08:34Z","updated_at":"2015-08-23T15:43:53Z","pushed_at":"2015-09-11T21:00:26Z","git_url":"git://github.com/w3c/mediacapture-fromelement.git","ssh_url":"git@github.com:w3c/mediacapture-fromelement.git","clone_url":"https://github.com/w3c/mediacapture-fromelement.git","svn_url":"https://github.com/w3c/mediacapture-fromelement","homepage":null,"size":193,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":2,"default_branch":"gh-pages"}},"base":{"label":"w3c:gh-pages","ref":"gh-pages","sha":"1501e3bee0f545be055abf72829839e7d4ba7e94","user":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=3","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"repo":{"id":26036168,"name":"mediacapture-fromelement","full_name":"w3c/mediacapture-fromelement","owner":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=3","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/w3c/mediacapture-fromelement","description":"API to create a MediaStream from Media Element","fork":false,"url":"https://api.github.com/repos/w3c/mediacapture-fromelement","forks_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/forks","keys_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/teams","hooks_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/hooks","issue_events_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/issues/events{/number}","events_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/events","assignees_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/assignees{/user}","branches_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/branches{/branch}","tags_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/tags","blobs_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/git/refs{/sha}","trees_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/statuses/{sha}","languages_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/languages","stargazers_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/stargazers","contributors_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/contributors","subscribers_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/subscribers","subscription_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/subscription","commits_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/commits{/sha}","git_commits_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/git/commits{/sha}","comments_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/comments{/number}","issue_comment_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/issues/comments{/number}","contents_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/contents/{+path}","compare_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/merges","archive_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/downloads","issues_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/issues{/number}","pulls_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/pulls{/number}","milestones_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/milestones{/number}","notifications_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/labels{/name}","releases_url":"https://api.github.com/repos/w3c/mediacapture-fromelement/releases{/id}","created_at":"2014-10-31T23:08:34Z","updated_at":"2015-08-23T15:43:53Z","pushed_at":"2015-09-11T21:00:26Z","git_url":"git://github.com/w3c/mediacapture-fromelement.git","ssh_url":"git@github.com:w3c/mediacapture-fromelement.git","clone_url":"https://github.com/w3c/mediacapture-fromelement.git","svn_url":"https://github.com/w3c/mediacapture-fromelement","homepage":null,"size":193,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":2,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/w3c/mediacapture-fromelement/pulls/12"},"html":{"href":"https://github.com/w3c/mediacapture-fromelement/pull/12"},"issue":{"href":"https://api.github.com/repos/w3c/mediacapture-fromelement/issues/12"},"comments":{"href":"https://api.github.com/repos/w3c/mediacapture-fromelement/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/w3c/mediacapture-fromelement/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/w3c/mediacapture-fromelement/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/w3c/mediacapture-fromelement/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/w3c/mediacapture-fromelement/statuses/2f8a1149b3d9aeea895629ead1967014dce488a1"}}}}