Persoenliche Mediazentrale
ulrich
2022-05-11 392dc977ae7d13188f07db1d6d865a964bb96858
Lautstaerkeregelung hinzugefuegt
5 files modified
49 ■■■■ changed files
src/de/uhilger/tango/api/MediaSteuerung.java 8 ●●●●● patch | view | raw | blame | history
www/app.css 30 ●●●●● patch | view | raw | blame | history
www/data/tpl/ctrl.txt 2 ●●●●● patch | view | raw | blame | history
www/font/pikto.ttf patch | view | raw | blame | history
www/js/app.js 9 ●●●● patch | view | raw | blame | history
src/de/uhilger/tango/api/MediaSteuerung.java
@@ -71,9 +71,13 @@
  public static final String PL_API_STRG = "api/strg/"; 
  public static final String PL_CMD_ENDE = "ende";
  public static final String PL_CMD_STOP = "stop";
  public static final String PL_CMD_VOLDN = "voldn";
  public static final String PL_CMD_VOLUP = "volup";
  public static final String PL_CMD_PAUSE = "pause";
  public static final String PL_CMD_PLAYON = "weiter";
  public static final String PL_CMD_CALYPSO_STOP = "stop";
  public static final String PL_CMD_CALYPSO_VOL_INC = "vol-inc";
  public static final String PL_CMD_CALYPSO_VOL_DEC = "vol-dec";
  public static final String PL_CMD_CALYPSO_PAUSE = "pause";
  public static final String PL_CMD_CALYPSO_PLAYON = "playon";
  public static final String DEFAULT_HOST = "http://localhost:9090";
@@ -106,6 +110,10 @@
        } else if(elems[5].equalsIgnoreCase(PL_CMD_STOP)) {
          spielt.remove(elems[4]);
          response = kommandoSenden(fs, elems[4], PL_CMD_CALYPSO_STOP);
        } else if(elems[5].equalsIgnoreCase(PL_CMD_VOLDN)) {
          response = kommandoSenden(fs, elems[4], PL_CMD_CALYPSO_VOL_DEC);
        } else if(elems[5].equalsIgnoreCase(PL_CMD_VOLUP)) {
          response = kommandoSenden(fs, elems[4], PL_CMD_CALYPSO_VOL_INC);
        } else if(elems[5].equalsIgnoreCase(PL_CMD_PAUSE)) {
          response = kommandoSenden(fs, elems[4], PL_CMD_CALYPSO_PAUSE);
        //} else if(elems[5].equalsIgnoreCase(PL_CMD_PLAYON)) {
www/app.css
@@ -468,7 +468,7 @@
@font-face {
  font-family: 'pikto';
  src: url('font/pikto.ttf?68902687') format('truetype');
  src: url('font/pikto.ttf?73409988') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@@ -478,46 +478,45 @@
@media screen and (-webkit-min-device-pixel-ratio:0) {
  @font-face {
    font-family: 'pikto';
    src: url('../font/pikto.svg?49751252#pikto') format('svg');
    src: url('../font/pikto.svg?73409988#pikto') format('svg');
  }
}
*/
 [class^="icon-"]:before, [class*=" icon-"]:before {
[class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "pikto";
  font-style: normal;
  font-weight: normal;
  speak: never;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  /* opacity: .8; */
  /* For safety - reset parent styles, that can break glyph codes*/
  font-variant: normal;
  text-transform: none;
  /* fix buttons height, for twitter bootstrap */
  line-height: 1em;
  /* Animation center compensation - margins should be symmetric */
  /* remove if not needed */
  /* margin-left: .2em; */
  margin-left: .2em;
  /* you can be more comfortable with increased icons size */
  /* font-size: 120%; */
  /* Font smoothing. That was taken from TWBS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}
.icon-cancel:before { content: '\e800'; } /* '' */
.icon-th-large:before { content: '\e801'; } /* '' */
.icon-th-list:before { content: '\e802'; } /* '' */
@@ -548,6 +547,8 @@
.icon-cog-alt:before { content: '\e81b'; } /* '' */
.icon-wrench:before { content: '\e81c'; } /* '' */
.icon-flash:before { content: '\e81d'; } /* '' */
.icon-volume-down:before { content: '\e81e'; } /* '' */
.icon-volume-up:before { content: '\e81f'; } /* '' */
.icon-rss:before { content: '\f09e'; } /* '' */
.icon-docs:before { content: '\f0c5'; } /* '' */
.icon-menu:before { content: '\f0c9'; } /* '' */
@@ -570,6 +571,9 @@
.icon-toggle-on:before { content: '\f205'; } /* '' */
.icon-podcast:before { content: '\f2ce'; } /* '' */
/* Dropdown Menu */
/* Style The Dropdown Button */
www/data/tpl/ctrl.txt
@@ -31,5 +31,7 @@
    <button class="ctrl-btn ctrl-item" id="live-btn" title="Live"><i class="icon-podcast"></i></button>
    <button class="ctrl-btn ctrl-item" id="switch-btn" title="Ein/Aus"><i class="icon-flash"></i></button>
    <!-- <button class="ctrl-btn ctrl-item" id="" title="Einstellungen"><i class="icon-tablet"></i></button> -->
    <button class="ctrl-btn ctrl-item" id="voldn-btn" title="leiser"><i class="icon-volume-down"></i></button>
    <button class="ctrl-btn ctrl-item" id="volup-btn" title="lauter"><i class="icon-volume-up"></i></button>
  </div>
</div>
www/font/pikto.ttf
Binary files differ
www/js/app.js
@@ -374,7 +374,14 @@
      self.addEvtListener('#plst-btn', 'click', self.titel_liste);
      self.addEvtListener('#live-btn', 'click', self.livestream_selection);
      self.addEvtListener('#switch-btn', 'click', self.geraet_schalt_liste);
      self.addEvtListener('#voldn-btn', 'click', function() {
        self.kommando('voldn');
      });
      self.addEvtListener('#volup-btn', 'click', function() {
        self.kommando('volup');
      });
      self.media_liste();
    });
  };