App zur Steuerung des mpv Mediaplayers auf einem Raspberry Pi über HTTP
undisclosed
2023-01-07 2f2aa7d344d41c6d4083149b1ea6b41e7fb1f683
commit | author | age
b16b54 1 /*
U 2  * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3  * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4  */
5 package de.uhilger.calypso.handler;
6
7 import com.sun.net.httpserver.HttpExchange;
8 import de.uhilger.calypso.App;
9
10 /**
11  *
12  * @author ulli
13  */
14 public class VLCKillHandler extends AbstractHandler {
15   
16   @Override
17   protected String process(HttpExchange t, String params) {
18       Process p = App.getPlayerProcess();
19       p.destroy();
20       App.setPlayerProcess(null);
21     String antwort = "Player-Prozess beendet.";
22     return antwort;
23   }
24   
25 }