{"action":"closed","issue":{"url":"https://api.github.com/repos/bbc/VideoContext/issues/14","repository_url":"https://api.github.com/repos/bbc/VideoContext","labels_url":"https://api.github.com/repos/bbc/VideoContext/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/bbc/VideoContext/issues/14/comments","events_url":"https://api.github.com/repos/bbc/VideoContext/issues/14/events","html_url":"https://github.com/bbc/VideoContext/issues/14","id":171761233,"number":14,"title":"Video transition example not working in Chrome for Android","user":{"login":"georgwaechter","id":121247,"avatar_url":"https://avatars.githubusercontent.com/u/121247?v=3","gravatar_id":"","url":"https://api.github.com/users/georgwaechter","html_url":"https://github.com/georgwaechter","followers_url":"https://api.github.com/users/georgwaechter/followers","following_url":"https://api.github.com/users/georgwaechter/following{/other_user}","gists_url":"https://api.github.com/users/georgwaechter/gists{/gist_id}","starred_url":"https://api.github.com/users/georgwaechter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgwaechter/subscriptions","organizations_url":"https://api.github.com/users/georgwaechter/orgs","repos_url":"https://api.github.com/users/georgwaechter/repos","events_url":"https://api.github.com/users/georgwaechter/events{/privacy}","received_events_url":"https://api.github.com/users/georgwaechter/received_events","type":"User","site_admin":false},"labels":[{"id":286262209,"url":"https://api.github.com/repos/bbc/VideoContext/labels/bug","name":"bug","color":"fc2929","default":true},{"id":286262211,"url":"https://api.github.com/repos/bbc/VideoContext/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-08-17T21:10:34Z","updated_at":"2016-12-05T17:29:28Z","closed_at":"2016-12-05T17:29:28Z","body":"Hi,\n\ni've noticed that the video transition example does not work on Chrome for Android. It blends the video as expected, but the charachter is not moving. It looks like two images - instead of videos - get transitioned.\n\nI've used the Chrome Developer tools to inspect the error log and came to this message:\nvideocontext.js:1623 Uncaught (in promise) DOMException: play() can only be initiated by a user gesture\n\nThe problem is that the play() cal is not within the stack trace of the click() handler for the play button. Thus, Chrome does not allow it to play. \n\nI've read some comments in the chrome issue tracker and there is a workaround that seems to work for <audio> tags. It may work also for video (haven't had time to test it yet): Create an empty <video src=\"\" /> tag on click(), play() it and later on reuse this video DOM element within the video context [internals](https://github.com/bbc/VideoContext/blob/master/src/SourceNodes/videonode.js#L79). So it should be enough to implement a way to pass an existing video DOM element to a VideoSourceNode ..\n\nBy the way: On Firefox for Android it works as expected. But i've read that mobile safari has the same restrictions as Chrome for Android. Is here somebody with an iPhone device to test this?\n\nGeorg\n"}}
{"actor":{"display_login":"MatthewShotton"}}