{"action":"opened","issue":{"url":"https://api.github.com/repos/aframevr/aframe/issues/1916","repository_url":"https://api.github.com/repos/aframevr/aframe","labels_url":"https://api.github.com/repos/aframevr/aframe/issues/1916/labels{/name}","comments_url":"https://api.github.com/repos/aframevr/aframe/issues/1916/comments","events_url":"https://api.github.com/repos/aframevr/aframe/issues/1916/events","html_url":"https://github.com/aframevr/aframe/issues/1916","id":177428622,"number":1916,"title":"Calling pause() on a sound component and then calling play() does not resume where left off","user":{"login":"rishitank","id":3771081,"avatar_url":"https://avatars.githubusercontent.com/u/3771081?v=3","gravatar_id":"","url":"https://api.github.com/users/rishitank","html_url":"https://github.com/rishitank","followers_url":"https://api.github.com/users/rishitank/followers","following_url":"https://api.github.com/users/rishitank/following{/other_user}","gists_url":"https://api.github.com/users/rishitank/gists{/gist_id}","starred_url":"https://api.github.com/users/rishitank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rishitank/subscriptions","organizations_url":"https://api.github.com/users/rishitank/orgs","repos_url":"https://api.github.com/users/rishitank/repos","events_url":"https://api.github.com/users/rishitank/events{/privacy}","received_events_url":"https://api.github.com/users/rishitank/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-16T13:41:54Z","updated_at":"2016-09-16T13:41:54Z","closed_at":null,"body":"**Description:**\r\nWhen calling pause() on a sound component, the sound pauses but it feels as if the counter for the sound playback is still ongoing (it is as if pause() just mutes the volume) and calling play() does not resume the audio where it left off, but instead however many X seconds have passed since the initial pause().\r\n\r\n- A-Frame Version: 0.3.0\r\n- Platform/Device: Desktop Chrome 53.0.2785.116 m\r\n- Reproducible Code Snippet or Demo URL [highly encouraged]:\r\n\r\nHTML:\r\n`<a-entity id=\"soundEntity\" sound=\"src: #black; on: mouseenter\" position=\"0 5.2 0.3\" scale=\"0.2 0.2 0.2\"></a-entity>`\r\n\r\nJavaScript:\r\n```\r\nvar soundEntity = document.querySelector(\"#soundEntity\");\r\nsoundEntity.addEventListener(\"stateremoved\", function(evt) {\r\n    if (evt.detail.state === \"cursor-hovered\" && soundEntity.components.sound.isPlaying) {\r\n        soundEntity.components.sound.pause();\r\n    }\r\n});\r\nsoundEntity.addEventListener(\"stateadded\", function(evt) {\r\n    if (evt.detail.state === \"cursor-hovered\" && !soundEntity.components.sound.isPlaying) {\r\n        soundEntity.components.sound.play();\r\n    }\r\n});\r\n```\r\n\r\nAlso if I were to log `soundEntity.components.sound.sound.context.currentTime` after a call to pause or play, the counter has a gap of however many seconds I wait between each pause and play. Any help with this would be greatly appreciated, thanks."}}
{"actor":{"display_login":"rishitank"}}