{"action":"created","issue":{"url":"https://api.github.com/repos/goldfire/howler.js/issues/191","labels_url":"https://api.github.com/repos/goldfire/howler.js/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/goldfire/howler.js/issues/191/comments","events_url":"https://api.github.com/repos/goldfire/howler.js/issues/191/events","html_url":"https://github.com/goldfire/howler.js/issues/191","id":39170941,"number":191,"title":"Feature request: playing multiple audios as a playlist","user":{"login":"hugolpz","id":1420189,"avatar_url":"https://avatars.githubusercontent.com/u/1420189?v=3","gravatar_id":"","url":"https://api.github.com/users/hugolpz","html_url":"https://github.com/hugolpz","followers_url":"https://api.github.com/users/hugolpz/followers","following_url":"https://api.github.com/users/hugolpz/following{/other_user}","gists_url":"https://api.github.com/users/hugolpz/gists{/gist_id}","starred_url":"https://api.github.com/users/hugolpz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugolpz/subscriptions","organizations_url":"https://api.github.com/users/hugolpz/orgs","repos_url":"https://api.github.com/users/hugolpz/repos","events_url":"https://api.github.com/users/hugolpz/events{/privacy}","received_events_url":"https://api.github.com/users/hugolpz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-07-31T07:49:27Z","updated_at":"2015-09-30T00:55:04Z","closed_at":"2014-08-01T15:46:26Z","body":"Maybe I missed something, but I didn't found an easy way to play a list of audios as a playlist. A built-in way to play list of audio files would be helpful. When provided an array of urls corresponding to as many audio files, this function would play these files as a playlist [one at the end of an other] in the same order as the provided array of urls.\r\n\r\n----\r\n\r\n**Current:** For now, the current way I play a list of audios is a very dirty, not-scalable, hardcoded cascade of howler `play()` + `onend: function(){ ... }` such:\r\n\r\n```\r\nvar sound = new Howl({\r\n  urls: ['sound_1.mp3'],\r\n  autoplay: true,\r\n  onend: function() {\r\n   ...\r\n  }\r\n}).play();\r\n```\r\n\r\nSuch, for 3 files : \r\n\r\n```\r\nvar sound = new Howl({\r\n  urls: ['sound_1.mp3'],\r\n  autoplay: true,\r\n  onend: function() {\r\n     var sound = new Howl({\r\n     urls: ['sound_2.mp3'],\r\n     autoplay: true,\r\n     onend: function() {\r\n             var sound = new Howl({\r\n             urls: ['sound_3.mp3'],\r\n             autoplay: true,\r\n             onend: function() {\r\n                   // Continue the cascade if more files ares needed.\r\n                }\r\n             }).play();\r\n     }\r\n    }).play();\r\n  }\r\n}).play();\r\n```"},"comment":{"url":"https://api.github.com/repos/goldfire/howler.js/issues/comments/144231041","html_url":"https://github.com/goldfire/howler.js/issues/191#issuecomment-144231041","issue_url":"https://api.github.com/repos/goldfire/howler.js/issues/191","id":144231041,"user":{"login":"jayknowstheway","id":11984147,"avatar_url":"https://avatars.githubusercontent.com/u/11984147?v=3","gravatar_id":"","url":"https://api.github.com/users/jayknowstheway","html_url":"https://github.com/jayknowstheway","followers_url":"https://api.github.com/users/jayknowstheway/followers","following_url":"https://api.github.com/users/jayknowstheway/following{/other_user}","gists_url":"https://api.github.com/users/jayknowstheway/gists{/gist_id}","starred_url":"https://api.github.com/users/jayknowstheway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayknowstheway/subscriptions","organizations_url":"https://api.github.com/users/jayknowstheway/orgs","repos_url":"https://api.github.com/users/jayknowstheway/repos","events_url":"https://api.github.com/users/jayknowstheway/events{/privacy}","received_events_url":"https://api.github.com/users/jayknowstheway/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T00:55:04Z","updated_at":"2015-09-30T00:55:04Z","body":"Goldfire! By the way, thank you for such a cool tool! I see Howler docs as being more than just an API type library. When I imagine examples in the docs, I imagine seeing code for how to make a library of audio tracks, another that has sounds/tracks with dedicated buttons (like a sampler), another showing playback controls. Sounds like a job for the Howler community, as these examples sort of veer into javascript instead of Howler's basics. But maybe you might already have some in the works to further spur development? Thank you for listening!"}}