Skip to content

Instantly share code, notes, and snippets.

@hmschreiner
Forked from ry8806/jplayer-playerservice.js
Created January 2, 2016 00:04
Show Gist options
  • Save hmschreiner/6aa75ff5364670a9d5d8 to your computer and use it in GitHub Desktop.
Save hmschreiner/6aa75ff5364670a9d5d8 to your computer and use it in GitHub Desktop.
myApp.service("PlayerService", [function () {
this.IsPaused = false;
this.CurrentTrack = null;
this.Play = function (track) {
this.CurrentTrack = track;
this.IsPaused = false;
};
this.Pause = function () {
this.IsPaused = !this.IsPaused;
};
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment