{"action":"created","issue":{"url":"https://api.github.com/repos/dailymotion/hls.js/issues/447","repository_url":"https://api.github.com/repos/dailymotion/hls.js","labels_url":"https://api.github.com/repos/dailymotion/hls.js/issues/447/labels{/name}","comments_url":"https://api.github.com/repos/dailymotion/hls.js/issues/447/comments","events_url":"https://api.github.com/repos/dailymotion/hls.js/issues/447/events","html_url":"https://github.com/dailymotion/hls.js/issues/447","id":155223198,"number":447,"title":"payload in event Hls.Events.FRAG_LOADED always is empty arraybuffer","user":{"login":"maxinminax","id":4716949,"avatar_url":"https://avatars.githubusercontent.com/u/4716949?v=3","gravatar_id":"","url":"https://api.github.com/users/maxinminax","html_url":"https://github.com/maxinminax","followers_url":"https://api.github.com/users/maxinminax/followers","following_url":"https://api.github.com/users/maxinminax/following{/other_user}","gists_url":"https://api.github.com/users/maxinminax/gists{/gist_id}","starred_url":"https://api.github.com/users/maxinminax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxinminax/subscriptions","organizations_url":"https://api.github.com/users/maxinminax/orgs","repos_url":"https://api.github.com/users/maxinminax/repos","events_url":"https://api.github.com/users/maxinminax/events{/privacy}","received_events_url":"https://api.github.com/users/maxinminax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-17T10:10:51Z","updated_at":"2016-05-19T20:11:29Z","closed_at":null,"body":"`hls.on(Hls.Events.FRAG_LOADED, function(event, data) {`\r\n`    console.log(data.payload.byteLength);`\r\n`});`\r\nPayload always is `ArrayBuffer {}` with byteLength 0"},"comment":{"url":"https://api.github.com/repos/dailymotion/hls.js/issues/comments/220438309","html_url":"https://github.com/dailymotion/hls.js/issues/447#issuecomment-220438309","issue_url":"https://api.github.com/repos/dailymotion/hls.js/issues/447","id":220438309,"user":{"login":"kfeinUI","id":5054750,"avatar_url":"https://avatars.githubusercontent.com/u/5054750?v=3","gravatar_id":"","url":"https://api.github.com/users/kfeinUI","html_url":"https://github.com/kfeinUI","followers_url":"https://api.github.com/users/kfeinUI/followers","following_url":"https://api.github.com/users/kfeinUI/following{/other_user}","gists_url":"https://api.github.com/users/kfeinUI/gists{/gist_id}","starred_url":"https://api.github.com/users/kfeinUI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfeinUI/subscriptions","organizations_url":"https://api.github.com/users/kfeinUI/orgs","repos_url":"https://api.github.com/users/kfeinUI/repos","events_url":"https://api.github.com/users/kfeinUI/events{/privacy}","received_events_url":"https://api.github.com/users/kfeinUI/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T20:11:29Z","updated_at":"2016-05-19T20:11:29Z","body":"Have run into this myself. It's an event sequencing thing. It's an object passed by reference. The internal handler for this event clears out the data as it processes the payload. When you add your own event, it will follow the internal usage so the payload will be empty at that point.\r\n\r\n"}}