{"action":"closed","issue":{"url":"https://api.github.com/repos/leoasis/react-sound/issues/60","repository_url":"https://api.github.com/repos/leoasis/react-sound","labels_url":"https://api.github.com/repos/leoasis/react-sound/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/leoasis/react-sound/issues/60/comments","events_url":"https://api.github.com/repos/leoasis/react-sound/issues/60/events","html_url":"https://github.com/leoasis/react-sound/issues/60","id":305931299,"number":60,"title":"Not working on mobile","user":{"login":"Mersaul4","id":22306935,"avatar_url":"https://avatars3.githubusercontent.com/u/22306935?v=4","gravatar_id":"","url":"https://api.github.com/users/Mersaul4","html_url":"https://github.com/Mersaul4","followers_url":"https://api.github.com/users/Mersaul4/followers","following_url":"https://api.github.com/users/Mersaul4/following{/other_user}","gists_url":"https://api.github.com/users/Mersaul4/gists{/gist_id}","starred_url":"https://api.github.com/users/Mersaul4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mersaul4/subscriptions","organizations_url":"https://api.github.com/users/Mersaul4/orgs","repos_url":"https://api.github.com/users/Mersaul4/repos","events_url":"https://api.github.com/users/Mersaul4/events{/privacy}","received_events_url":"https://api.github.com/users/Mersaul4/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-16T13:39:43Z","updated_at":"2018-03-19T10:34:58Z","closed_at":"2018-03-19T10:34:58Z","author_association":"NONE","body":"This is a great library, but automatically playing a sound doesn't seem to work on mobile due to an issue with permissions.\r\n\r\nRendering a basic Sound component works on PC (Chrome), but doesn't work on Android (Chrome). The error\r\n\r\n`Uncaught (in promise) DOMException: play() can only be initiated by a user gesture.`\r\n\r\nFull console output\r\n\r\n```\r\nsound4: Merged options: Object\r\nsound4: play(): Attempting to load\r\nsound4: load (soundfile.mp3)\r\nUncaught (in promise) DOMException: play() can only be initiated by a user gesture.\r\nsound4: loadstart\r\nsound4: suspend\r\nsound4: durationchange (1410.612)\r\nsound4: loadedmetadata\r\nsound4: loadeddata\r\nsound4: canplay\r\nsound4: onload()\r\n```"}}
{"actor":{"display_login":"Mersaul4"}}