{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/mediacapture-main/issues/199","labels_url":"https://api.github.com/repos/w3c/mediacapture-main/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/w3c/mediacapture-main/issues/199/comments","events_url":"https://api.github.com/repos/w3c/mediacapture-main/issues/199/events","html_url":"https://github.com/w3c/mediacapture-main/pull/199","id":90723160,"number":199,"title":"Change ended event to be a MediaStreamTrackEvent with new error property","user":{"login":"burnburn","id":1171027,"avatar_url":"https://avatars.githubusercontent.com/u/1171027?v=3","gravatar_id":"","url":"https://api.github.com/users/burnburn","html_url":"https://github.com/burnburn","followers_url":"https://api.github.com/users/burnburn/followers","following_url":"https://api.github.com/users/burnburn/following{/other_user}","gists_url":"https://api.github.com/users/burnburn/gists{/gist_id}","starred_url":"https://api.github.com/users/burnburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/burnburn/subscriptions","organizations_url":"https://api.github.com/users/burnburn/orgs","repos_url":"https://api.github.com/users/burnburn/repos","events_url":"https://api.github.com/users/burnburn/events{/privacy}","received_events_url":"https://api.github.com/users/burnburn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-24T16:17:51Z","updated_at":"2015-06-25T08:45:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/w3c/mediacapture-main/pulls/199","html_url":"https://github.com/w3c/mediacapture-main/pull/199","diff_url":"https://github.com/w3c/mediacapture-main/pull/199.diff","patch_url":"https://github.com/w3c/mediacapture-main/pull/199.patch"},"body":"The ended event on an MST is in many cases not an error, just an event.  To simplify the upcoming change of MediaStreamErrorEvent to be ConstrainedErrorEvent, and to better match the semantics of the ended event, this PR proposes to change the ended event to be a MediaStreamTrackEvent with a new, optional, error property that can be used when the track has ended due to an error.\r\n\r\nThis is in related to the fulfillment of Issue #162 . See closed PR #170 for discussion."},"comment":{"url":"https://api.github.com/repos/w3c/mediacapture-main/issues/comments/115165692","html_url":"https://github.com/w3c/mediacapture-main/pull/199#issuecomment-115165692","issue_url":"https://api.github.com/repos/w3c/mediacapture-main/issues/199","id":115165692,"user":{"login":"adam-be","id":1233205,"avatar_url":"https://avatars.githubusercontent.com/u/1233205?v=3","gravatar_id":"","url":"https://api.github.com/users/adam-be","html_url":"https://github.com/adam-be","followers_url":"https://api.github.com/users/adam-be/followers","following_url":"https://api.github.com/users/adam-be/following{/other_user}","gists_url":"https://api.github.com/users/adam-be/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-be/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-be/subscriptions","organizations_url":"https://api.github.com/users/adam-be/orgs","repos_url":"https://api.github.com/users/adam-be/repos","events_url":"https://api.github.com/users/adam-be/events{/privacy}","received_events_url":"https://api.github.com/users/adam-be/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T08:45:26Z","updated_at":"2015-06-25T08:45:26Z","body":"I'm a bit confused by this change. Two events that are fired at different targets (MediaStream, MediaStreamTrack) gets merged into one. We never need the track for the 'ended' event since we have evt.target and the 'addtrack' and 'removetrack' events never use the error."}}