From 0259f4676a6fad731b4b16b3620c358afdb42fdc Mon Sep 17 00:00:00 2001
From: undisclosed
Date: Sun, 22 Jan 2023 14:32:22 +0000
Subject: [PATCH] Experimentell: JavaScript-Player fuer 'hier spielen' bei Abspiellisten

---
 src/de/uhilger/tango/Server.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/de/uhilger/tango/Server.java b/src/de/uhilger/tango/Server.java
index d356c0f..d5d445a 100644
--- a/src/de/uhilger/tango/Server.java
+++ b/src/de/uhilger/tango/Server.java
@@ -25,6 +25,7 @@
 import de.uhilger.tango.api.MediaSteuerung;
 import de.uhilger.tango.api.StopServerHandler;
 import de.uhilger.tango.api.StorageHandler;
+import de.uhilger.tango.api.StreamHandler;
 import de.uhilger.tango.store.FileStorage;
 import de.uhilger.tango.entity.Ablageort;
 import java.io.File;
@@ -54,7 +55,8 @@
   public static final String RB_STORE = "store";
   public static final String RB_STRG = "strg";
   public static final String RB_GSTRG = "gstrg";
-  public static final String RB_ALIST= "alist";
+  public static final String RB_ALIST = "alist";
+  public static final String RB_STRM = "strm";
   //public static final String RB_UI_ROOT = "uiroot";
   public static final String RB_STOP_SERVER = "stopServer";
   //public static final String RB_ABLAGE_TEST = "testAblage";
@@ -121,9 +123,10 @@
     server.createContext(ctx + rb.getString(RB_STRG), new MediaSteuerung(conf));
     server.createContext(ctx + rb.getString(RB_GSTRG), new GeraetSteuerung(conf));
     server.createContext(ctx + rb.getString(RB_ALIST), new ListHandler(conf));
+    server.createContext(ctx + rb.getString(RB_STRM), new StreamHandler(conf));
     server.createContext(ctx + rb.getString(RB_STOP_SERVER), new StopServerHandler());
     //server.setExecutor(Executors.newFixedThreadPool(20));
-    server.setExecutor(Executors.newCachedThreadPool());
+    server.setExecutor(Executors.newFixedThreadPool(5));
     server.start();
   }
   

--
Gitblit v1.9.3