From 88b1e6a6e65277bbb75bf8c21edfca98c20ae6c1 Mon Sep 17 00:00:00 2001 From: Hyzual Date: Mon, 15 Dec 2014 23:08:40 +0100 Subject: [PATCH] Rewrites the entire player component. Not finished ! This is still work in progress and fairly broken in this commit. The jquery jplayer is now wrapped in an angular directive. The queue is no longer being managed in rootScope but is a part of the player service. It can be accessed like before and emptied / filled. The player controller also uses the player service now. --- app/common/main-controller.js | 2 +- app/index.html | 2 +- app/player/player-directive.js | 98 ++++++++++++++++++++++++------- app/player/player-service.js | 31 ++++++---- app/player/player-service_test.js | 29 +++++---- app/player/player.html | 6 +- app/player/player.js | 2 + app/queue/queue.js | 6 +- app/subsonic/subsonic.js | 7 ++- app/subsonic/subsonic_test.js | 12 ++-- 10 files changed, 132 insertions(+), 63 deletions(-) diff --git a/app/common/main-controller.js b/app/common/main-controller.js index c3c65cc..64bf724 100644 --- a/app/common/main-controller.js +++ b/app/common/main-controller.js @@ -474,7 +474,7 @@ //$scope.ping(); if (globals.settings.SaveTrackPosition) { loadTrackPosition(); - player.startSaveTrackPosition(); + //FIXME: player.startSaveTrackPosition(); } } /* End Startup */ diff --git a/app/index.html b/app/index.html index 25c800f..24b39b6 100755 --- a/app/index.html +++ b/app/index.html @@ -75,7 +75,7 @@ --> - +