{"action":"created","issue":{"url":"https://api.github.com/repos/Wenape/meteor-soundmanager/issues/2","labels_url":"https://api.github.com/repos/Wenape/meteor-soundmanager/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Wenape/meteor-soundmanager/issues/2/comments","events_url":"https://api.github.com/repos/Wenape/meteor-soundmanager/issues/2/events","html_url":"https://github.com/Wenape/meteor-soundmanager/issues/2","id":54283739,"number":2,"title":"Bar-ui Player loads song/playlist only around 40% of the time, seeking some guidance","user":{"login":"etmarch","id":7493751,"avatar_url":"https://avatars.githubusercontent.com/u/7493751?v=3","gravatar_id":"","url":"https://api.github.com/users/etmarch","html_url":"https://github.com/etmarch","followers_url":"https://api.github.com/users/etmarch/followers","following_url":"https://api.github.com/users/etmarch/following{/other_user}","gists_url":"https://api.github.com/users/etmarch/gists{/gist_id}","starred_url":"https://api.github.com/users/etmarch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etmarch/subscriptions","organizations_url":"https://api.github.com/users/etmarch/orgs","repos_url":"https://api.github.com/users/etmarch/repos","events_url":"https://api.github.com/users/etmarch/events{/privacy}","received_events_url":"https://api.github.com/users/etmarch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-01-14T04:44:58Z","updated_at":"2015-01-16T22:01:17Z","closed_at":null,"body":"I'm looking for some help in properly implementing Sound Manager 2 in meteor, as I am definitely confused in terms of where to place code, how to incorporate the player into templates, and just how to interact with this package in general. I have little experience using/integrating audio players. \r\n\r\nI know that the package is loading sound manager properly, as I can see this output in my console: \r\nSoundManager V2.97a.20140901 (HTML5-only mode) + html5PollingInterval (50ms)\r\n SoundManager 2 HTML5 support: mp3 = true, mp4 = true, ogg = true, opus = true, wav = true\r\nSoundManager 2: Ready. ✓\r\n\r\nHowever, the player usually appears \"dead\" - no songs loaded, cant minimize/maximize the playlist, etc... I literally copied and pasted the code from the bar-ui demo here: https://github.com/scottschiller/SoundManager2/blob/master/demo/bar-ui/index.html. I placed the bar-ui.js file into the /client/lib/ folder, I wrapped the html of the example player in a template called \"audioPlayer\", and I also copied and pasted the contents of the \"demo.js\" file into the Template.audioPlayer.rendered callback, in a sad attempt to properly load the player. Basically I have no idea what Im doing. Also, I just started getting this in the console: \r\n\"soundManager: Queueing onready handler\". \r\n\r\nIf you could provide any documentation for implementing Sound Manager 2 in the 'Meteor' way, so I can use template events and helpers to dynamically load mp3s (im using CollectionFS package to upload song files on the server/gridFs), I would be very grateful! Thanks for the great package too. "},"comment":{"url":"https://api.github.com/repos/Wenape/meteor-soundmanager/issues/comments/70329629","html_url":"https://github.com/Wenape/meteor-soundmanager/issues/2#issuecomment-70329629","issue_url":"https://api.github.com/repos/Wenape/meteor-soundmanager/issues/2","id":70329629,"user":{"login":"etmarch","id":7493751,"avatar_url":"https://avatars.githubusercontent.com/u/7493751?v=3","gravatar_id":"","url":"https://api.github.com/users/etmarch","html_url":"https://github.com/etmarch","followers_url":"https://api.github.com/users/etmarch/followers","following_url":"https://api.github.com/users/etmarch/following{/other_user}","gists_url":"https://api.github.com/users/etmarch/gists{/gist_id}","starred_url":"https://api.github.com/users/etmarch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etmarch/subscriptions","organizations_url":"https://api.github.com/users/etmarch/orgs","repos_url":"https://api.github.com/users/etmarch/repos","events_url":"https://api.github.com/users/etmarch/events{/privacy}","received_events_url":"https://api.github.com/users/etmarch/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T22:01:17Z","updated_at":"2015-01-16T22:01:17Z","body":"I tried basically everything I could think of to try and get the bar-ui demo code to work, but after several hours I realized its fruitless. Instead, I have used your code as a base to set up my own custom player, and so far its working quite well (on all browsers, hurray!). One change in particular I made to your sample code: \r\nA) Wrapping the first soundManager.createSound() in a soundManager.setup onready call due to some loading issues I was seeing.   \r\n\r\nIm feeling pretty comfortable building a basic player at this point, so thank you again. My very last question: is it feasible to set up soundManager to play all songs in one specific player/template? I don't see why it wouldn't be, because as far as im concerned I can make all soundManager actions (play, pause, etc..) global template helpers. Is it possible for an event/action that occured in one template to update the context/data of a seperate unrelated template? For instance, I click a song on the homepage, which calls a global helper function that assigns that song's data to the main player.\r\n\r\nThanks much for your help as always! \r\n"}}