{"action":"created","issue":{"url":"https://api.github.com/repos/captbaritone/winamp2-js/issues/146","labels_url":"https://api.github.com/repos/captbaritone/winamp2-js/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/captbaritone/winamp2-js/issues/146/comments","events_url":"https://api.github.com/repos/captbaritone/winamp2-js/issues/146/events","html_url":"https://github.com/captbaritone/winamp2-js/issues/146","id":65009275,"number":146,"title":"Allow people to embed Winamp2-js in their webpages","user":{"login":"captbaritone","id":162735,"avatar_url":"https://avatars.githubusercontent.com/u/162735?v=3","gravatar_id":"","url":"https://api.github.com/users/captbaritone","html_url":"https://github.com/captbaritone","followers_url":"https://api.github.com/users/captbaritone/followers","following_url":"https://api.github.com/users/captbaritone/following{/other_user}","gists_url":"https://api.github.com/users/captbaritone/gists{/gist_id}","starred_url":"https://api.github.com/users/captbaritone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/captbaritone/subscriptions","organizations_url":"https://api.github.com/users/captbaritone/orgs","repos_url":"https://api.github.com/users/captbaritone/repos","events_url":"https://api.github.com/users/captbaritone/events{/privacy}","received_events_url":"https://api.github.com/users/captbaritone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-29T01:20:47Z","updated_at":"2015-04-12T00:17:05Z","closed_at":null,"body":"I have a rough draft working which you can try:\r\n\r\n    <script src=\"http://jordaneldredge.com/winamp2-js.js\" data-media='https://cdn.rawgit.com/captbaritone/llama/master/llama-2.91.mp3' async></script>\r\n\r\nIt works with media that has a CORS header, or is served on the same domain as the page embedding the script.\r\n\r\n## Todo:\r\n- [x] Embed css and html to avoid extra/hacky ajax calls\r\n- [ ] Offer script via https as well as http\r\n- [ ] Find a reasonable permanent home for the script\r\n- [x] Ensure CSS is not going to interfere with other elements on the page\r\n- [x] Ensure JS won't interfere with other JS on the page (Reduce use of global namespace)\r\n- [ ] Graceful fallback for browsers we don't support. `<audio>`? User supplied?\r\n- [ ] Allow multiple instances per page. Not sure how to best handle this."},"comment":{"url":"https://api.github.com/repos/captbaritone/winamp2-js/issues/comments/91951157","html_url":"https://github.com/captbaritone/winamp2-js/issues/146#issuecomment-91951157","issue_url":"https://api.github.com/repos/captbaritone/winamp2-js/issues/146","id":91951157,"user":{"login":"captbaritone","id":162735,"avatar_url":"https://avatars.githubusercontent.com/u/162735?v=3","gravatar_id":"","url":"https://api.github.com/users/captbaritone","html_url":"https://github.com/captbaritone","followers_url":"https://api.github.com/users/captbaritone/followers","following_url":"https://api.github.com/users/captbaritone/following{/other_user}","gists_url":"https://api.github.com/users/captbaritone/gists{/gist_id}","starred_url":"https://api.github.com/users/captbaritone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/captbaritone/subscriptions","organizations_url":"https://api.github.com/users/captbaritone/orgs","repos_url":"https://api.github.com/users/captbaritone/repos","events_url":"https://api.github.com/users/captbaritone/events{/privacy}","received_events_url":"https://api.github.com/users/captbaritone/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T00:17:05Z","updated_at":"2015-04-12T00:17:05Z","body":"With the addition of [cleanslate](https://github.com/captbaritone/winamp2-js/commit/2950973b7adf6f2a7814747270d2e25094e98360), and [namespacing our css](https://github.com/captbaritone/winamp2-js/commit/abd342dc90be7bd57e215f5a09c745d953b0bd57), I feel pretty good out our CSS not conflicting with the parent page."}}