{"action":"created","issue":{"url":"https://api.github.com/repos/dailymotion/hls.js/issues/491","repository_url":"https://api.github.com/repos/dailymotion/hls.js","labels_url":"https://api.github.com/repos/dailymotion/hls.js/issues/491/labels{/name}","comments_url":"https://api.github.com/repos/dailymotion/hls.js/issues/491/comments","events_url":"https://api.github.com/repos/dailymotion/hls.js/issues/491/events","html_url":"https://github.com/dailymotion/hls.js/issues/491","id":159540174,"number":491,"title":"startLoad after 404 network error is quietly stopping ","user":{"login":"leandromoreira","id":55913,"avatar_url":"https://avatars.githubusercontent.com/u/55913?v=3","gravatar_id":"","url":"https://api.github.com/users/leandromoreira","html_url":"https://github.com/leandromoreira","followers_url":"https://api.github.com/users/leandromoreira/followers","following_url":"https://api.github.com/users/leandromoreira/following{/other_user}","gists_url":"https://api.github.com/users/leandromoreira/gists{/gist_id}","starred_url":"https://api.github.com/users/leandromoreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandromoreira/subscriptions","organizations_url":"https://api.github.com/users/leandromoreira/orgs","repos_url":"https://api.github.com/users/leandromoreira/repos","events_url":"https://api.github.com/users/leandromoreira/events{/privacy}","received_events_url":"https://api.github.com/users/leandromoreira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-10T01:02:15Z","updated_at":"2016-06-16T16:06:16Z","closed_at":null,"body":"Steps to reproduce:\r\n\r\n1. simulate a 404 playlist (http://www.streambox.fr/playlists/x36xhzz/404.m3u8)\r\n2. try to [recover from it](https://github.com/clappr/clappr/blob/master/src/playbacks/hls/hls.js#L142-L151) ( `onError(e, data) data.fatal && data.type == NETWORK_ERROR` and then `startLoad()`)\r\n3. **I was expecting another** `Events.ERROR` but instead it seems that `hls` just state itself as `stopped` and silently stopped.\r\n\r\nSummarizing, it tries (after the 404) to [recovery player.startLoad](https://github.com/dailymotion/hls.js/blob/master/src/hls.js#L190) and then on [stream controller.startLoad](https://github.com/dailymotion/hls.js/blob/master/src/controller/stream-controller.js#L64) it checks the `levels` (undefined) and then [it stops](https://github.com/dailymotion/hls.js/blob/master/src/controller/stream-controller.js#L88).\r\n\r\nIs this intentional?"},"comment":{"url":"https://api.github.com/repos/dailymotion/hls.js/issues/comments/226532875","html_url":"https://github.com/dailymotion/hls.js/issues/491#issuecomment-226532875","issue_url":"https://api.github.com/repos/dailymotion/hls.js/issues/491","id":226532875,"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-06-16T16:06:16Z","updated_at":"2016-06-16T16:06:16Z","body":"Hi @leandromoreira \r\nit is not intentional, just not implemented :-)\r\na good place to force a manifest reload on `hls.startLoad()` would be in `levelController.startLoad()`:\r\n\r\n```\r\nif (this._levels === undefined) {\r\n   this.hls.trigger(Event.MANIFEST_LOADING, {url: this.hls.url});\r\n}\r\n```\r\n\r\nPR welcome"}}
{"actor":{"display_login":"mangui"}}