angular-soundmanager2
angular-soundmanager2 copied to clipboard
Factory suggestion
First of all thanks for all your effort in writing this angular wrapper! There are two things that might be helpfull to implement in my opinion. First change scope.$apply in the main directive to scope.$applyAsync as it gives Error: [$rootScope:inprog] $apply already in progress
I didn't see a play/pause function in the factory. As I understand you use initPlayTrack for that function.
I suggest to implement isResume to playTrack like this
ngSoundManager.factory( ...
playTrack: function(trackId,isResume) {
this.initPlayTrack(trackId,isResume);
}
thanks again!