{"action":"created","issue":{"url":"https://api.github.com/repos/goldfire/howler.js/issues/627","repository_url":"https://api.github.com/repos/goldfire/howler.js","labels_url":"https://api.github.com/repos/goldfire/howler.js/issues/627/labels{/name}","comments_url":"https://api.github.com/repos/goldfire/howler.js/issues/627/comments","events_url":"https://api.github.com/repos/goldfire/howler.js/issues/627/events","html_url":"https://github.com/goldfire/howler.js/issues/627","id":179192119,"number":627,"title":"Pause all & resume all sprites","user":{"login":"brenwell","id":802618,"avatar_url":"https://avatars.githubusercontent.com/u/802618?v=3","gravatar_id":"","url":"https://api.github.com/users/brenwell","html_url":"https://github.com/brenwell","followers_url":"https://api.github.com/users/brenwell/followers","following_url":"https://api.github.com/users/brenwell/following{/other_user}","gists_url":"https://api.github.com/users/brenwell/gists{/gist_id}","starred_url":"https://api.github.com/users/brenwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brenwell/subscriptions","organizations_url":"https://api.github.com/users/brenwell/orgs","repos_url":"https://api.github.com/users/brenwell/repos","events_url":"https://api.github.com/users/brenwell/events{/privacy}","received_events_url":"https://api.github.com/users/brenwell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-26T10:29:09Z","updated_at":"2016-09-26T10:31:02Z","closed_at":null,"body":"Hey there guys, thanks for the great library.\r\n\r\nI am having an issue with pausing all sprites in a game on `visibilitychange` and then resuming the sounds when the user returns to the game.\r\n\r\nI always get the following error:\r\n\r\n```\r\nUncaught TypeError: Cannot read property '0' of undefined\r\n```\r\n\r\nFrom the this line in the play function\r\n``` Javascript\r\n// Determine how long to play for and where to start playing.\r\nvar seek = sound._seek > 0 ? sound._seek : self._sprite[sprite][0] / 1000; // THIS LINE\r\n```\r\n\r\nI can't seem to understand what the issue is, I have managed to recreate the scenario in a jsfiddle however it is quite crude. Simply navigate to a different tab and then back and it breaks. Any ideas would be helpful thanks.\r\n\r\nhttps://jsfiddle.net/brenwell/pqcfze7s/"},"comment":{"url":"https://api.github.com/repos/goldfire/howler.js/issues/comments/249534963","html_url":"https://github.com/goldfire/howler.js/issues/627#issuecomment-249534963","issue_url":"https://api.github.com/repos/goldfire/howler.js/issues/627","id":249534963,"user":{"login":"brenwell","id":802618,"avatar_url":"https://avatars.githubusercontent.com/u/802618?v=3","gravatar_id":"","url":"https://api.github.com/users/brenwell","html_url":"https://github.com/brenwell","followers_url":"https://api.github.com/users/brenwell/followers","following_url":"https://api.github.com/users/brenwell/following{/other_user}","gists_url":"https://api.github.com/users/brenwell/gists{/gist_id}","starred_url":"https://api.github.com/users/brenwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brenwell/subscriptions","organizations_url":"https://api.github.com/users/brenwell/orgs","repos_url":"https://api.github.com/users/brenwell/repos","events_url":"https://api.github.com/users/brenwell/events{/privacy}","received_events_url":"https://api.github.com/users/brenwell/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T10:31:02Z","updated_at":"2016-09-26T10:31:02Z","body":"OOps my last jsfiddle change was not saved, 1 second I will fix it"}}
{"actor":{"display_login":"brenwell"}}