- Pause
+ Play/Pause
Skip
@@ -132,6 +132,9 @@ margin-bottom: 1px; }
+
+
+ M
+
@@ -189,11 +192,30 @@ $scope.status = '';
$scope.alert = '';
$scope.back = function() { seek(-10) };
-$scope.pause = function() {};
+$scope.togglePlay = function() {
+ $http({
+ method: 'GET',
+ url: '/playpause'
+ }).then(function successCallback(response) {
+ showStatus("Toggle play: Success");
+ }, function errorCallback(response) {
+ showStatus("Toggle play: Error");
+ });
+};
$scope.forward = function() { seek(10) };
$scope.volumeUp = function() { volume(5) };
$scope.volumeDown = function() { volume(-5) };
-
+$scope.toggleMute = function() {
+ $http({
+ method: 'GET',
+ url: '/muteunmute'
+ }).then(function successCallback(response) {
+ showStatus("Toggle mute: Success");
+ }, function errorCallback(response) {
+ showStatus("Toggle mute: Error");
+ });
+};
+
$scope.showListBottomSheet = function($event) {
$scope.alert = '';
$mdBottomSheet.show({