angular-soundmanager2
angular-soundmanager2 copied to clipboard
Add changeVolume API - 03-factory-angularPlayer.js
Decrease code redundancy by shifting changeVolume function to API. This makes change of global volume variable possible:
angular.module('myApp')
.controller('myCtrl',
['$scope', 'angularPlayer', function($scope, angularPlayer){
angularPlayer.changeVolume(25);
}]);