{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/media-keys/issues/19","labels_url":"https://api.github.com/repos/whatwg/media-keys/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/media-keys/issues/19/comments","events_url":"https://api.github.com/repos/whatwg/media-keys/issues/19/events","html_url":"https://github.com/whatwg/media-keys/issues/19","id":59488996,"number":19,"title":"Why is the HTMLMediaElement sugar being designed in parallel with the lower-level primitive?","user":{"login":"domenic","id":617481,"avatar_url":"https://avatars.githubusercontent.com/u/617481?v=3","gravatar_id":"","url":"https://api.github.com/users/domenic","html_url":"https://github.com/domenic","followers_url":"https://api.github.com/users/domenic/followers","following_url":"https://api.github.com/users/domenic/following{/other_user}","gists_url":"https://api.github.com/users/domenic/gists{/gist_id}","starred_url":"https://api.github.com/users/domenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenic/subscriptions","organizations_url":"https://api.github.com/users/domenic/orgs","repos_url":"https://api.github.com/users/domenic/repos","events_url":"https://api.github.com/users/domenic/events{/privacy}","received_events_url":"https://api.github.com/users/domenic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-02T14:37:49Z","updated_at":"2015-03-02T15:34:49Z","closed_at":null,"body":"I would have thought you'd design the lower-level primitive first, then see what libraries people build with it regarding HTMLMediaElements, and then try to standardize the winning ideas."},"comment":{"url":"https://api.github.com/repos/whatwg/media-keys/issues/comments/76732942","html_url":"https://github.com/whatwg/media-keys/issues/19#issuecomment-76732942","issue_url":"https://api.github.com/repos/whatwg/media-keys/issues/19","id":76732942,"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":"2015-03-02T15:34:49Z","updated_at":"2015-03-02T15:34:49Z","body":"Safari on iOS and Opera on Android already have integration between media elements and the system media keys. There isn't much room for innovation here: when something is playing, it can be paused and resumed using the headphone button. I think we ought to have reasonable default behavior so that the play/pause button will actually start doing something useful without waiting for every site to adopt the API. If the defaults aren't good, use the API.\r\n\r\nAlso, it's not yet completely clear what the [coupling between audio focus/session, audio playback and remote control events](https://github.com/whatwg/media-keys/issues/9) needs to be. In other words, making this API completely orthogonal to media elements may not even be an option. Please comment on that issue if you know more."}}