{"action":"created","issue":{"url":"https://api.github.com/repos/flowplayer/flowplayer/issues/1025","repository_url":"https://api.github.com/repos/flowplayer/flowplayer","labels_url":"https://api.github.com/repos/flowplayer/flowplayer/issues/1025/labels{/name}","comments_url":"https://api.github.com/repos/flowplayer/flowplayer/issues/1025/comments","events_url":"https://api.github.com/repos/flowplayer/flowplayer/issues/1025/events","html_url":"https://github.com/flowplayer/flowplayer/issues/1025","id":156052903,"number":1025,"title":"unload in paused state: browser continues to buffer","user":{"login":"blacktrash","id":168338,"avatar_url":"https://avatars.githubusercontent.com/u/168338?v=3","gravatar_id":"","url":"https://api.github.com/users/blacktrash","html_url":"https://github.com/blacktrash","followers_url":"https://api.github.com/users/blacktrash/followers","following_url":"https://api.github.com/users/blacktrash/following{/other_user}","gists_url":"https://api.github.com/users/blacktrash/gists{/gist_id}","starred_url":"https://api.github.com/users/blacktrash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blacktrash/subscriptions","organizations_url":"https://api.github.com/users/blacktrash/orgs","repos_url":"https://api.github.com/users/blacktrash/repos","events_url":"https://api.github.com/users/blacktrash/events{/privacy}","received_events_url":"https://api.github.com/users/blacktrash/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nnarhinen","id":265438,"avatar_url":"https://avatars.githubusercontent.com/u/265438?v=3","gravatar_id":"","url":"https://api.github.com/users/nnarhinen","html_url":"https://github.com/nnarhinen","followers_url":"https://api.github.com/users/nnarhinen/followers","following_url":"https://api.github.com/users/nnarhinen/following{/other_user}","gists_url":"https://api.github.com/users/nnarhinen/gists{/gist_id}","starred_url":"https://api.github.com/users/nnarhinen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnarhinen/subscriptions","organizations_url":"https://api.github.com/users/nnarhinen/orgs","repos_url":"https://api.github.com/users/nnarhinen/repos","events_url":"https://api.github.com/users/nnarhinen/events{/privacy}","received_events_url":"https://api.github.com/users/nnarhinen/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2016-05-20T21:18:35Z","updated_at":"2016-05-29T03:58:51Z","closed_at":null,"body":"When the player is unloaded in paused state, browsers continue to buffer the video.\r\nObviously also affects shutdown, potentially with serious consequences: https://flowplayer.org/forum/#!/setup_configuration:memory-leak-even-after\r\n\r\nCould be worked around with something like this in unload:\r\n```js\r\nif (api.paused) { // probably some more conditionals, not hls etc\r\n  api.one(\"resume\", function () {\r\n    api.unload();\r\n  });\r\n  api.resume();\r\n} else {\r\n  api.unload();\r\n});\r\n```\r\n\r\n- tested so far in desktop Chrome, Firefox, Safari with MP4 and WebM sources.\r\n- does not happen with hls.js or flash hls\r\n- not tested so far with generic Safari HLS because segment traffic is hidden in application\r\n- not tested on mobile devices and other browsers"},"comment":{"url":"https://api.github.com/repos/flowplayer/flowplayer/issues/comments/222341503","html_url":"https://github.com/flowplayer/flowplayer/issues/1025#issuecomment-222341503","issue_url":"https://api.github.com/repos/flowplayer/flowplayer/issues/1025","id":222341503,"user":{"login":"nnarhinen","id":265438,"avatar_url":"https://avatars.githubusercontent.com/u/265438?v=3","gravatar_id":"","url":"https://api.github.com/users/nnarhinen","html_url":"https://github.com/nnarhinen","followers_url":"https://api.github.com/users/nnarhinen/followers","following_url":"https://api.github.com/users/nnarhinen/following{/other_user}","gists_url":"https://api.github.com/users/nnarhinen/gists{/gist_id}","starred_url":"https://api.github.com/users/nnarhinen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnarhinen/subscriptions","organizations_url":"https://api.github.com/users/nnarhinen/orgs","repos_url":"https://api.github.com/users/nnarhinen/repos","events_url":"https://api.github.com/users/nnarhinen/events{/privacy}","received_events_url":"https://api.github.com/users/nnarhinen/received_events","type":"User","site_admin":false},"created_at":"2016-05-29T03:58:51Z","updated_at":"2016-05-29T03:58:51Z","body":"From the screenshot you can see the steps I made. Please redo them and tell if your browser continues buffering."}}
{"actor":{"display_login":"nnarhinen"}}