angular-soundmanager2 icon indicating copy to clipboard operation
angular-soundmanager2 copied to clipboard

Factory suggestion

Open roybekhuis opened this issue 9 years ago • 0 comments

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!

roybekhuis avatar Jan 22 '16 16:01 roybekhuis