{"action":"created","issue":{"url":"https://api.github.com/repos/goldfire/howler.js/issues/704","repository_url":"https://api.github.com/repos/goldfire/howler.js","labels_url":"https://api.github.com/repos/goldfire/howler.js/issues/704/labels{/name}","comments_url":"https://api.github.com/repos/goldfire/howler.js/issues/704/comments","events_url":"https://api.github.com/repos/goldfire/howler.js/issues/704/events","html_url":"https://github.com/goldfire/howler.js/issues/704","id":208145274,"number":704,"title":"seek(X) then pause() fails","user":{"login":"implicitdef","id":6475255,"avatar_url":"https://avatars.githubusercontent.com/u/6475255?v=3","gravatar_id":"","url":"https://api.github.com/users/implicitdef","html_url":"https://github.com/implicitdef","followers_url":"https://api.github.com/users/implicitdef/followers","following_url":"https://api.github.com/users/implicitdef/following{/other_user}","gists_url":"https://api.github.com/users/implicitdef/gists{/gist_id}","starred_url":"https://api.github.com/users/implicitdef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/implicitdef/subscriptions","organizations_url":"https://api.github.com/users/implicitdef/orgs","repos_url":"https://api.github.com/users/implicitdef/repos","events_url":"https://api.github.com/users/implicitdef/events{/privacy}","received_events_url":"https://api.github.com/users/implicitdef/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-16T14:59:42Z","updated_at":"2017-02-19T15:47:54Z","closed_at":null,"body":"Hi\r\n\r\n**It seems that doing .seek(X) and immediately .pause() causes the .pause() to not be applied to the actual sound.**\r\n\r\nTested on Chrome.\r\nSee the following codepen : http://codepen.io/implicitdef/pen/MJRmMz\r\nSteps to reproduce :\r\n- click \"Play\"\r\n- click \"Seek to time 30 and immediately pause\"\r\n\r\nExpected results : \r\nThe sound should go to time 30 but be immediately stopped.\r\nActually : \r\nThe sound jumps to time 30 but keeps playing.\r\n\r\nIf you look at the console you'll see that after the incriminated .pause() call, I'm printing the result of .playing(), which does return false, even though the sound is evidently playing.\r\nThis seems to indicate that Howler at this point messes up its internal state and doesn't get that the call to .pause() failed.\r\n\r\nNote that wrapping the call .pause() call in a window.setTimeout seems to make it work again.\r\n "},"comment":{"url":"https://api.github.com/repos/goldfire/howler.js/issues/comments/280927468","html_url":"https://github.com/goldfire/howler.js/issues/704#issuecomment-280927468","issue_url":"https://api.github.com/repos/goldfire/howler.js/issues/704","id":280927468,"user":{"login":"zefie","id":612177,"avatar_url":"https://avatars.githubusercontent.com/u/612177?v=3","gravatar_id":"","url":"https://api.github.com/users/zefie","html_url":"https://github.com/zefie","followers_url":"https://api.github.com/users/zefie/followers","following_url":"https://api.github.com/users/zefie/following{/other_user}","gists_url":"https://api.github.com/users/zefie/gists{/gist_id}","starred_url":"https://api.github.com/users/zefie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zefie/subscriptions","organizations_url":"https://api.github.com/users/zefie/orgs","repos_url":"https://api.github.com/users/zefie/repos","events_url":"https://api.github.com/users/zefie/events{/privacy}","received_events_url":"https://api.github.com/users/zefie/received_events","type":"User","site_admin":false},"created_at":"2017-02-19T15:47:54Z","updated_at":"2017-02-19T15:47:54Z","body":"I'm finding your test to be worse than you explain on my Chrome. I did what you said to reproduce, and it does what you state.\r\n\r\nHowever,then I can't use the Pause link at all. I try clicking \"Seek to 0\", still can't pause. \"Seek to 30\", still can't pause. In fact the pause functionality does not get restored until I click Play again., thus resetting Howler.\r\n\r\nFor reference, this is on version 56.0.2924.87 (64-bit)"}}
{"actor":{"display_login":"zefie"}}