{"action":"opened","issue":{"url":"https://api.github.com/repos/WICG/interventions/issues/23","repository_url":"https://api.github.com/repos/WICG/interventions","labels_url":"https://api.github.com/repos/WICG/interventions/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/WICG/interventions/issues/23/comments","events_url":"https://api.github.com/repos/WICG/interventions/issues/23/events","html_url":"https://github.com/WICG/interventions/issues/23","id":159416701,"number":23,"title":"Intervention change: allow autoplay of muted videos on mobile","user":{"login":"mounirlamouri","id":573590,"avatar_url":"https://avatars.githubusercontent.com/u/573590?v=3","gravatar_id":"","url":"https://api.github.com/users/mounirlamouri","html_url":"https://github.com/mounirlamouri","followers_url":"https://api.github.com/users/mounirlamouri/followers","following_url":"https://api.github.com/users/mounirlamouri/following{/other_user}","gists_url":"https://api.github.com/users/mounirlamouri/gists{/gist_id}","starred_url":"https://api.github.com/users/mounirlamouri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mounirlamouri/subscriptions","organizations_url":"https://api.github.com/users/mounirlamouri/orgs","repos_url":"https://api.github.com/users/mounirlamouri/repos","events_url":"https://api.github.com/users/mounirlamouri/events{/privacy}","received_events_url":"https://api.github.com/users/mounirlamouri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-09T14:06:34Z","updated_at":"2016-06-09T14:06:34Z","closed_at":null,"body":"/CC @ojanvafai @foolip @avayvod @xxyzzzq @jernoble @padenot @hober\r\n\r\nThis isn't your usual intervention. This is actually an intervention relaxation but this is probably the right place to discuss about it because it is related to a common intervention.\r\n\r\nThe current status of the autoplay restrictions on mobile is that Chrome Android and Safari iOS both block autoplay. IE/Edge and Firefox Android do not as far as I know.\r\n\r\nIn a nutshell, both browsers require that a user gesture is being processed (ie. in JS stack) in order for a call to `play()` to be successful and the usage of the `autoplay` attribute will be ignored.\r\n\r\nChrome Android is going to introduce a change that will relax the autoplay intervention on mobile the following way:\r\n- videos marked as muted will be allowed to play without a user gesture;\r\n- videos marked as muted and with the `autoplay` attribute will start playing when they are visible (in the viewport);\r\n- when unmuting a video, if it did not receive a user gesture when playback started or when the mute change happened, volume will change but the video will pause.\r\n\r\nNote that Chrome Android will disable this feature via a couple of settings.\r\n\r\nThe following minor changes could be added to the HTML specification:\r\n- when the `autoplay` attribute is checked to start playback when enough data is available, it should be said that the UA _may_ wait for the element to be visible.\r\n- when the muted state is changed, the specification should allow the UA to pause the playback if playback is currently not allowed, following the same wording as the `play()` algorithm (step 1).\r\n\r\nWDYT? :)"}}
{"actor":{"display_login":"mounirlamouri"}}