{"action":"created","issue":{"url":"https://api.github.com/repos/dailymotion/hls.js/issues/425","repository_url":"https://api.github.com/repos/dailymotion/hls.js","labels_url":"https://api.github.com/repos/dailymotion/hls.js/issues/425/labels{/name}","comments_url":"https://api.github.com/repos/dailymotion/hls.js/issues/425/comments","events_url":"https://api.github.com/repos/dailymotion/hls.js/issues/425/events","html_url":"https://github.com/dailymotion/hls.js/issues/425","id":153552065,"number":425,"title":"null fragment url","user":{"login":"joshua-andrassy","id":17318112,"avatar_url":"https://avatars.githubusercontent.com/u/17318112?v=3","gravatar_id":"","url":"https://api.github.com/users/joshua-andrassy","html_url":"https://github.com/joshua-andrassy","followers_url":"https://api.github.com/users/joshua-andrassy/followers","following_url":"https://api.github.com/users/joshua-andrassy/following{/other_user}","gists_url":"https://api.github.com/users/joshua-andrassy/gists{/gist_id}","starred_url":"https://api.github.com/users/joshua-andrassy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshua-andrassy/subscriptions","organizations_url":"https://api.github.com/users/joshua-andrassy/orgs","repos_url":"https://api.github.com/users/joshua-andrassy/repos","events_url":"https://api.github.com/users/joshua-andrassy/events{/privacy}","received_events_url":"https://api.github.com/users/joshua-andrassy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dailymotion/hls.js/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dailymotion/hls.js/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-06T22:36:03Z","updated_at":"2016-05-24T12:06:22Z","closed_at":"2016-05-24T12:06:21Z","body":"I do not know if this is an issue or not, or an issue with the playlists I'm working with...\r\n\r\nThe streams I am working with are AES encrypted and it appears that the first segment in each playlist is as such:\r\n\r\n#EXTINF:9.9683,\r\n#EXT-X-KEY:METHOD=AES-128,URI=\"http://www.some.url.com/crypt-0.key\"\r\nhttp://www.some.url.com/segment-file-640kbps-0.ts\r\n#EXTINF:9.9683,\r\nhttp://www.some.url.com/segment-file-640kbps-1.ts\r\n..\r\n..\r\n..\r\n\r\nThe end result is that the first fragment object features neither a url nor decryption data and ultimately some really bad playback and endless fragment looping errors (probably because that first segment features a key frame :)\r\n\r\nIs the above a proper format for a playlist? If so, I wouldn't mind attempting to fix this and follow up with a pull request.  If not, I'll simply maintain my current workaround since I am not in a position to change a large number of hls playlist files :)\r\n\r\nSomewhat related, I did notice the following in \"parseLevelPlaylist\" at around line 6522 of dist/hls.js:\r\n```\r\n//it falls outside the while loop that does all the parsing\r\n//in my use case above, since its outside the loop, it does not pop the fragment with null url\r\nif (frag && !frag.url) {\r\n        level.fragments.pop();\r\n        totalduration -= frag.duration;\r\n      }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/dailymotion/hls.js/issues/comments/221248474","html_url":"https://github.com/dailymotion/hls.js/issues/425#issuecomment-221248474","issue_url":"https://api.github.com/repos/dailymotion/hls.js/issues/425","id":221248474,"user":{"login":"mangui","id":1798553,"avatar_url":"https://avatars.githubusercontent.com/u/1798553?v=3","gravatar_id":"","url":"https://api.github.com/users/mangui","html_url":"https://github.com/mangui","followers_url":"https://api.github.com/users/mangui/followers","following_url":"https://api.github.com/users/mangui/following{/other_user}","gists_url":"https://api.github.com/users/mangui/gists{/gist_id}","starred_url":"https://api.github.com/users/mangui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mangui/subscriptions","organizations_url":"https://api.github.com/users/mangui/orgs","repos_url":"https://api.github.com/users/mangui/repos","events_url":"https://api.github.com/users/mangui/events{/privacy}","received_events_url":"https://api.github.com/users/mangui/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T12:06:21Z","updated_at":"2016-05-24T12:06:21Z","body":"closing as PR merged"}}
{"actor":{"display_login":"mangui"}}