{"action":"opened","issue":{"url":"https://api.github.com/repos/StreamMachine/StreamMachine/issues/70","labels_url":"https://api.github.com/repos/StreamMachine/StreamMachine/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/StreamMachine/StreamMachine/issues/70/comments","events_url":"https://api.github.com/repos/StreamMachine/StreamMachine/issues/70/events","html_url":"https://github.com/StreamMachine/StreamMachine/issues/70","id":120183045,"number":70,"title":"HLS Master Index Ordering Should be Configurable","user":{"login":"ewr","id":204350,"avatar_url":"https://avatars.githubusercontent.com/u/204350?v=3","gravatar_id":"","url":"https://api.github.com/users/ewr","html_url":"https://github.com/ewr","followers_url":"https://api.github.com/users/ewr/followers","following_url":"https://api.github.com/users/ewr/following{/other_user}","gists_url":"https://api.github.com/users/ewr/gists{/gist_id}","starred_url":"https://api.github.com/users/ewr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewr/subscriptions","organizations_url":"https://api.github.com/users/ewr/orgs","repos_url":"https://api.github.com/users/ewr/repos","events_url":"https://api.github.com/users/ewr/events{/privacy}","received_events_url":"https://api.github.com/users/ewr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/StreamMachine/StreamMachine/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/StreamMachine/StreamMachine/labels/hls","name":"hls","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-03T14:27:30Z","updated_at":"2015-12-03T14:27:30Z","closed_at":null,"body":"When an Apple device loads an HLS master playlist, it initially connects to the first compatible variant. It will then use bandwidth calculations to device whether another variant is more appropriate and make a switch. Other HLS implementations probably have similar behavior (you can't make a bandwidth choice before you start streaming, for instance).\r\n\r\nCurrently, master index order is semi-random based on when streams register. For KPCC right now, that means our 48k variant is listed first, then our 192k variant. Most listening happens on the 192k variant, however, meaning that most sessions go through a variant switch. \r\n\r\nIt would be nice to include a position flag in the stream config that would allow manual group ordering. That would allow users to set an ordering that makes sense for their listening patterns."}}