aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-11-06 20:29:54 -0800
committerScott Jackson <daneren2005@gmail.com>2014-11-06 20:29:54 -0800
commitdc0c636622398aab1cd4718fbe70021ad317b59b (patch)
treef04814f162b6c9e7c2d45ae06c3cbae5937730a2 /src/github
parent2faca3078d6504ace3f646caf34f82131cb73aae (diff)
downloaddsub-dc0c636622398aab1cd4718fbe70021ad317b59b.tar.gz
dsub-dc0c636622398aab1cd4718fbe70021ad317b59b.tar.bz2
dsub-dc0c636622398aab1cd4718fbe70021ad317b59b.zip
Add DLNAController stub
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/provider/DLNARouteProvider.java3
-rw-r--r--src/github/daneren2005/dsub/service/DLNAController.java81
2 files changed, 83 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/provider/DLNARouteProvider.java b/src/github/daneren2005/dsub/provider/DLNARouteProvider.java
index ccd192eb..ca6fabe0 100644
--- a/src/github/daneren2005/dsub/provider/DLNARouteProvider.java
+++ b/src/github/daneren2005/dsub/provider/DLNARouteProvider.java
@@ -54,6 +54,7 @@ import java.util.Map;
import github.daneren2005.dsub.domain.DLNADevice;
import github.daneren2005.dsub.domain.RemoteControlState;
+import github.daneren2005.dsub.service.DLNAController;
import github.daneren2005.dsub.service.DownloadService;
import github.daneren2005.dsub.service.RemoteController;
@@ -275,7 +276,7 @@ public class DLNARouteProvider extends MediaRouteProvider {
@Override
public void onSelect() {
- // controller = new DLNAController(device);
+ controller = new DLNAController(device);
downloadService.setRemoteEnabled(RemoteControlState.DLNA, controller);
}
diff --git a/src/github/daneren2005/dsub/service/DLNAController.java b/src/github/daneren2005/dsub/service/DLNAController.java
new file mode 100644
index 00000000..dee65d64
--- /dev/null
+++ b/src/github/daneren2005/dsub/service/DLNAController.java
@@ -0,0 +1,81 @@
+/*
+ This file is part of Subsonic.
+ Subsonic is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ Subsonic is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ You should have received a copy of the GNU General Public License
+ along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
+ Copyright 2014 (C) Scott Jackson
+*/
+
+package github.daneren2005.dsub.service;
+
+import github.daneren2005.dsub.domain.DLNADevice;
+
+public class DLNAController extends RemoteController {
+ DLNADevice device;
+
+ public DLNAController(DLNADevice device) {
+ this.device = device;
+ }
+
+ @Override
+ public void create(boolean playing, int seconds) {
+
+ }
+
+ @Override
+ public void start() {
+
+ }
+
+ @Override
+ public void stop() {
+
+ }
+
+ @Override
+ public void shutdown() {
+
+ }
+
+ @Override
+ public void updatePlaylist() {
+
+ }
+
+ @Override
+ public void changePosition(int seconds) {
+
+ }
+
+ @Override
+ public void changeTrack(int index, DownloadFile song) {
+
+ }
+
+ @Override
+ public void setVolume(int volume) {
+
+ }
+
+ @Override
+ public void updateVolume(boolean up) {
+
+ }
+
+ @Override
+ public double getVolume() {
+ return 0;
+ }
+
+ @Override
+ public int getRemotePosition() {
+ return 0;
+ }
+}