{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/media-source/issues/17","labels_url":"https://api.github.com/repos/w3c/media-source/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/w3c/media-source/issues/17/comments","events_url":"https://api.github.com/repos/w3c/media-source/issues/17/events","html_url":"https://github.com/w3c/media-source/issues/17","id":111288764,"number":17,"title":"Should the media element load algorithm trigger detaching from a media element?","user":{"login":"wolenetz","id":11578819,"avatar_url":"https://avatars.githubusercontent.com/u/11578819?v=3","gravatar_id":"","url":"https://api.github.com/users/wolenetz","html_url":"https://github.com/wolenetz","followers_url":"https://api.github.com/users/wolenetz/followers","following_url":"https://api.github.com/users/wolenetz/following{/other_user}","gists_url":"https://api.github.com/users/wolenetz/gists{/gist_id}","starred_url":"https://api.github.com/users/wolenetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolenetz/subscriptions","organizations_url":"https://api.github.com/users/wolenetz/orgs","repos_url":"https://api.github.com/users/wolenetz/repos","events_url":"https://api.github.com/users/wolenetz/events{/privacy}","received_events_url":"https://api.github.com/users/wolenetz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/w3c/media-source/labels/needs%20implementation","name":"needs implementation","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"jdsmith3000","id":8323871,"avatar_url":"https://avatars.githubusercontent.com/u/8323871?v=3","gravatar_id":"","url":"https://api.github.com/users/jdsmith3000","html_url":"https://github.com/jdsmith3000","followers_url":"https://api.github.com/users/jdsmith3000/followers","following_url":"https://api.github.com/users/jdsmith3000/following{/other_user}","gists_url":"https://api.github.com/users/jdsmith3000/gists{/gist_id}","starred_url":"https://api.github.com/users/jdsmith3000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdsmith3000/subscriptions","organizations_url":"https://api.github.com/users/jdsmith3000/orgs","repos_url":"https://api.github.com/users/jdsmith3000/repos","events_url":"https://api.github.com/users/jdsmith3000/events{/privacy}","received_events_url":"https://api.github.com/users/jdsmith3000/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/w3c/media-source/milestones/2","html_url":"https://github.com/w3c/media-source/milestones/V1","labels_url":"https://api.github.com/repos/w3c/media-source/milestones/2/labels","id":1358225,"number":2,"title":"V1","description":null,"creator":{"login":"jdsmith3000","id":8323871,"avatar_url":"https://avatars.githubusercontent.com/u/8323871?v=3","gravatar_id":"","url":"https://api.github.com/users/jdsmith3000","html_url":"https://github.com/jdsmith3000","followers_url":"https://api.github.com/users/jdsmith3000/followers","following_url":"https://api.github.com/users/jdsmith3000/following{/other_user}","gists_url":"https://api.github.com/users/jdsmith3000/gists{/gist_id}","starred_url":"https://api.github.com/users/jdsmith3000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdsmith3000/subscriptions","organizations_url":"https://api.github.com/users/jdsmith3000/orgs","repos_url":"https://api.github.com/users/jdsmith3000/repos","events_url":"https://api.github.com/users/jdsmith3000/events{/privacy}","received_events_url":"https://api.github.com/users/jdsmith3000/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":3,"state":"open","created_at":"2015-10-15T21:12:39Z","updated_at":"2016-01-15T20:56:27Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-10-13T22:57:27Z","updated_at":"2016-01-29T06:49:42Z","closed_at":null,"body":"Migrated from w3c bugzilla tracker. For history prior to migration, please see:\r\nhttps://www.w3.org/Bugs/Public/show_bug.cgi?id=27843\r\n\r\nIt was previously assigned to Adrian Bateman. Editors will sync soon to determine who to take this bug."},"comment":{"url":"https://api.github.com/repos/w3c/media-source/issues/comments/176604535","html_url":"https://github.com/w3c/media-source/issues/17#issuecomment-176604535","issue_url":"https://api.github.com/repos/w3c/media-source/issues/17","id":176604535,"user":{"login":"foolip","id":498917,"avatar_url":"https://avatars.githubusercontent.com/u/498917?v=3","gravatar_id":"","url":"https://api.github.com/users/foolip","html_url":"https://github.com/foolip","followers_url":"https://api.github.com/users/foolip/followers","following_url":"https://api.github.com/users/foolip/following{/other_user}","gists_url":"https://api.github.com/users/foolip/gists{/gist_id}","starred_url":"https://api.github.com/users/foolip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foolip/subscriptions","organizations_url":"https://api.github.com/users/foolip/orgs","repos_url":"https://api.github.com/users/foolip/repos","events_url":"https://api.github.com/users/foolip/events{/privacy}","received_events_url":"https://api.github.com/users/foolip/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T06:49:42Z","updated_at":"2016-01-29T06:49:42Z","body":"That algorithm looks right, but ideally it should be on a form similar to https://w3c.github.io/webappsec-csp/#html-integration with hooks explicitly intended for such integration and not used internally by the MSE spec.\r\n\r\nSomething like this in MSE, where the term is #detach-media-source or similar:\r\n\r\n> To **detach** a *media source* from a *media element*, run these steps:\r\n> 1. Set the `readyState` attribute to `\"closed\"`.\r\n> 2. ...\r\n\r\nIn HTML we could then say as part of the media element load algorithm:\r\n\r\n> **Detach** the attached *media source*, if any, from the *media element*.\r\n\r\nAnd similar for the other cases where implementations clear the media source, which seems to include at least the `MEDIA_ERR_SRC_NOT_SUPPORTED` error condition in Blink.\r\n\r\nWDYT?"}}