{"action":"created","issue":{"url":"https://api.github.com/repos/mangui/flashls/issues/393","labels_url":"https://api.github.com/repos/mangui/flashls/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/mangui/flashls/issues/393/comments","events_url":"https://api.github.com/repos/mangui/flashls/issues/393/events","html_url":"https://github.com/mangui/flashls/issues/393","id":108119905,"number":393,"title":"add resilience in case of 404 on variant playlist, discard playlist and try another one","user":{"login":"maredudd","id":3416991,"avatar_url":"https://avatars.githubusercontent.com/u/3416991?v=3","gravatar_id":"","url":"https://api.github.com/users/maredudd","html_url":"https://github.com/maredudd","followers_url":"https://api.github.com/users/maredudd/followers","following_url":"https://api.github.com/users/maredudd/following{/other_user}","gists_url":"https://api.github.com/users/maredudd/gists{/gist_id}","starred_url":"https://api.github.com/users/maredudd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maredudd/subscriptions","organizations_url":"https://api.github.com/users/maredudd/orgs","repos_url":"https://api.github.com/users/maredudd/repos","events_url":"https://api.github.com/users/maredudd/events{/privacy}","received_events_url":"https://api.github.com/users/maredudd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mangui/flashls/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-24T12:22:27Z","updated_at":"2015-09-27T20:51:58Z","closed_at":null,"body":"If there is a variant main playlist and loading one of the variant playlists fails (e.g. 404 response) then the player stops instead of trying one of the other variants.\r\n\r\nI quickly tried changing to another variant and removing the failed variant from _levels.  It seemed to work with the chunks from the other variant being loaded but playback never started and the video was frozen.  Before looking into it in more detail I thought it better to discuss it first to see what's the best way to solve this."},"comment":{"url":"https://api.github.com/repos/mangui/flashls/issues/comments/143594396","html_url":"https://github.com/mangui/flashls/issues/393#issuecomment-143594396","issue_url":"https://api.github.com/repos/mangui/flashls/issues/393","id":143594396,"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":"2015-09-27T20:51:58Z","updated_at":"2015-09-27T20:51:58Z","body":"\"hot removing\" a quality level from the levels array seems quite challenging to handle ...\r\n\r\none way to handle it easily could be :\r\n - to detect these 404 errors on level loading using HLSEvent.error\r\n - when such error happens, retrieve the faulty level URL and keep it and close the hls playback session\r\n - add an optional params to hls.load(URL, { level URL to exclude, ... });\r\n - on parsing the manifest, discard level if URL is excluded\r\n\r\nthis should do the trick, but your playback will be disrupted, and you will have to restart it..."}}