Skip to content
This repository has been archived by the owner on Jun 1, 2019. It is now read-only.

Commit

Permalink
Version 2.0
Browse files Browse the repository at this point in the history
Neues Menü, Hotkeys und mehr
  • Loading branch information
nicolas authored and nicolas committed Oct 2, 2016
1 parent 08f82ac commit f98dfd9
Show file tree
Hide file tree
Showing 65 changed files with 411 additions and 199 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
# Telemac


Willkommen bei Telemac.
Willkommen bei Telemac

Dieses Projekt nutzt das [MacGap](https://github.com/MacGapProject)-Werkzeug um eine einfache, unter Zuhilfenahme von [video.js](http://videojs.com/) gestrickte Webseite als Mac-App anzubieten und setzt dabei auf die Logos von [3PO](https://github.com/3PO/Senderlogos).

Telemac wurde vom [Telemat1000](https://github.com/noestreich/Telemat1000) inspiriert, ist nicht-kommerziell und sieht so aus:

![Telemac Screenshot](telemac.jpg)
![Telemac Screenshot](telemac.png)

Telemac kann in Version 1.1 [hier](https://github.com/noestreich/Telemac/blob/master/test_release/telemac.zip?raw=true) geladen werden.
Telemac kann in Version 2.1 [hier](https://github.com/noestreich/Telemac/blob/master/test_release/telemac.zip?raw=true) geladen werden.

# Neu in Version 2.0
- Senderwechsel mit "+" und "-" Tasten wird unterstützt.
- Senderlogos gegen selbstgezeichnete getauscht.
- Programm-Tasten werden nur noch bei Mausaktivität ein- und automatisch wieder ausgeblendet.
- Bessere Vollbildunterstützung. Leider mit macgap-bedingter, grauer Leiste oben im Bildschirm.
- ZDFkultur wurde (eingestellt und) aus Telemac entfernt.

![Telemac Screenshot](wall.png)
53 changes: 49 additions & 4 deletions assets/css/style.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
body{
background-color: #cdcdcd;
background-color: #000;
margin:0px;
}

#sender{
width:100%;
margin: auto;
padding-left:10px;
border-radius: 5px;
}

#stream{
width:100%;
height:100%;
margin-left: auto;
margin-right: auto;
background-color: #000;
}

a{
display: inline-block;
border-radius: 5px;
width: 70px;
height: 53px;
margin: 10px 15px 0px 0px;
Expand All @@ -25,13 +29,18 @@ background-color: #eee;
text-align: center;
}

img{
border-radius: 5px;
}

#wall a{
display: inline-block;
border-radius: 5px;
width: 180px;
height: 120px;
margin: 10px 15px 0px 0px;
border: 1px solid #ddd;
background-color: #eee;
border: 1px solid #000;
background-color: #000;
text-align: center;
}

Expand All @@ -40,11 +49,47 @@ float:right;
margin: 20px 50px 0 0;
font-weight:bold;
text-transform:uppercase;
color:#000000;
color:#ccc;
letter-spacing:1pt;
word-spacing:2pt;
font-size:24px;
text-align:left;
font-family:verdana, sans-serif;
line-height:1;
}
#senderwechsel{
color:#ccc;
font-weight:bold;
letter-spacing:1pt;
font-size:9px;
font-family:verdana, sans-serif;
line-height:1;
}
.player {
background-color: #333;
position: relative;
width: 100%;
height: 400px;
}
.controls {
background-color: rgba(0,0,0,.5);
border-radius: 5px;
color: #eee;
padding: 1em;
position: absolute;
left: 2em;
right: 2em;
bottom: -8em;
text-align: center;
pointer-events: none;
opacity: 0;
transition: opacity .5s ease-in-out;
transition-delay: 0;
}
.player:hover .controls {
pointer-events: auto;
opacity: 1;
}
.player:not(:hover) .controls {
transition-delay: .5s;
}
194 changes: 194 additions & 0 deletions assets/js/sender.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
var senderARD = "http://daserste_live-lh.akamaihd.net/i/daserste_de@91204/master.m3u8";
var senderZDF = "http://zdf1314-lh.akamaihd.net/i/de14_v1@392878/master.m3u8";
var senderRBB = "http://rbb_live-lh.akamaihd.net/i/rbb_berlin@108248/master.m3u8";
var senderArte = "http://artelive-lh.akamaihd.net/i/artelive_de@393591/master.m3u8";
var senderZDFneo = "http://zdf1314-lh.akamaihd.net/i/de13_v1@392877/master.m3u8";
var senderZDFinfo = "http://zdf1112-lh.akamaihd.net/i/de12_v1@392882/master.m3u8";
var sender3sat = "http://zdf0910-lh.akamaihd.net/i/dach10_v1@392872/master.m3u8";
var senderPhoenix = "http://zdf0910-lh.akamaihd.net/i/de09_v1@392871/master.m3u8";
var senderWDR = "http://wdr_fs_geo-lh.akamaihd.net/i/wdrfs_geogeblockt@112044/master.m3u8";
var senderNDR = "http://ndr_fs-lh.akamaihd.net/i/ndrfs_hh@119223/master.m3u8";
var senderBR = "http://livestreams.br.de/i/bfsnord_germany@119898/master.m3u8";
var senderBRalpha = "http://livestreams.br.de/i/bralpha_germany@119899/master.m3u8";
var senderSWR = "http://swrrp-lh.akamaihd.net/i/swrrp_live@196739/master.m3u8";
var senderHR = "http://live1_hr-lh.akamaihd.net/i/hr_fernsehen@75910/master.m3u8";
var senderSR = "http://live2_sr-lh.akamaihd.net/i/sr_universal02@107595/master.m3u8";
var senderONE = "http://wdr_einsfestival-lh.akamaihd.net/i/wdr_einsfestival@328300/master.m3u8";
var senderDW = "http://dwstream4-lh.akamaihd.net/i/dwstream4_live@131329/master.m3u8";
var senderKiKa = "http://kika_geo-lh.akamaihd.net/i/livetvkika_de@75114/master.m3u8";
var senderTagesschau24 = "http://tagesschau-lh.akamaihd.net/i/tagesschau_1@119231/master.m3u8";
var senderMDR = "http://mdr_th_hls-lh.akamaihd.net/i/livetvmdrthueringen_de@106903/master.m3u8";
var senderNHK = "http://web-cache.stream.ne.jp/www11/nhkworld-tv/stv/225446/live.m3u8";
var senderF24 = "http://f24hls-i.akamaihd.net/hls/live/221193/F24_EN_LO_HLS/master_500.m3u8";
var senderRT = "http://rt-eng-live.hls.adaptive.level3.net/rt/eng/index.m3u8";
var senderAL = "http://aljazeera-eng-apple-live.adaptive.level3.net/apple/aljazeera/english/800.m3u8";
var senderABC = "http://abclive.abcnews.com/i/abc_live4@136330/index_1200_av-p.m3u8";
var senderN24 = "http://bsn246u6-i.akamaihd.net/hls/live/237201/Live2N24CMS/index.m3u8";
onkeyup = function(e){
if(e.keyCode == 187){
//alert(player.currentSrc());
switch (player.currentSrc()) {
case senderARD:
player.src({ type: "application/x-mpegURL", src: senderZDF });player.play();
break;
case senderZDF:
player.src({ type: "application/x-mpegURL", src: senderRBB });player.play();
break;
case senderRBB:
player.src({ type: "application/x-mpegURL", src: senderArte });player.play();
break;
case senderArte:
player.src({ type: "application/x-mpegURL", src: senderZDFneo });player.play();
break;
case senderZDFneo:
player.src({ type: "application/x-mpegURL", src: senderZDFinfo });player.play();
break;
case senderZDFinfo:
player.src({ type: "application/x-mpegURL", src: sender3sat });player.play();
break;
case sender3sat:
player.src({ type: "application/x-mpegURL", src: senderPhoenix });player.play();
break;
case senderPhoenix:
player.src({ type: "application/x-mpegURL", src: senderWDR });player.play();
break;
case senderWDR:
player.src({ type: "application/x-mpegURL", src: senderNDR });player.play();
break;
case senderNDR:
player.src({ type: "application/x-mpegURL", src: senderBR });player.play();
break;
case senderBR:
player.src({ type: "application/x-mpegURL", src: senderBRalpha });player.play();
break;
case senderBRalpha:
player.src({ type: "application/x-mpegURL", src: senderSWR });player.play();
break;
case senderSWR:
player.src({ type: "application/x-mpegURL", src: senderHR });player.play();
break;
case senderHR:
player.src({ type: "application/x-mpegURL", src: senderSR });player.play();
break;
case senderSR:
player.src({ type: "application/x-mpegURL", src: senderONE });player.play();
break;
case senderONE:
player.src({ type: "application/x-mpegURL", src: senderDW });player.play();
break;
case senderDW:
player.src({ type: "application/x-mpegURL", src: senderKiKa });player.play();
break;
case senderKiKa:
player.src({ type: "application/x-mpegURL", src: senderTagesschau24 });player.play();
break;
case senderTagesschau24:
player.src({ type: "application/x-mpegURL", src: senderMDR });player.play();
break;
case senderMDR:
player.src({ type: "application/x-mpegURL", src: senderNHK });player.play();
break;
case senderNHK:
player.src({ type: "application/x-mpegURL", src: senderF24 });player.play();
break;
case senderF24:
player.src({ type: "application/x-mpegURL", src: senderRT });player.play();
break;
case senderRT:
player.src({ type: "application/x-mpegURL", src: senderAL });player.play();
break;
case senderAL:
player.src({ type: "application/x-mpegURL", src: senderABC });player.play();
break;
case senderABC:
player.src({ type: "application/x-mpegURL", src: senderN24 });player.play();
break;
case senderN24:
player.src({ type: "application/x-mpegURL", src: senderARD });player.play();
break;
}
}
else if(e.keyCode == 189){
//alert(player.currentSrc());
switch (player.currentSrc()) {
case senderN24:
player.src({ type: "application/x-mpegURL", src: senderABC });player.play();
break;
case senderABC:
player.src({ type: "application/x-mpegURL", src: senderAL });player.play();
break;
case senderAL:
player.src({ type: "application/x-mpegURL", src: senderRT });player.play();
break;
case senderRT:
player.src({ type: "application/x-mpegURL", src: senderF24 });player.play();
break;
case senderF24:
player.src({ type: "application/x-mpegURL", src: senderNHK });player.play();
break;
case senderNHK:
player.src({ type: "application/x-mpegURL", src: senderMDR });player.play();
break;
case senderMDR:
player.src({ type: "application/x-mpegURL", src: senderTagesschau24 });player.play();
break;
case senderTagesschau24:
player.src({ type: "application/x-mpegURL", src: senderKiKa });player.play();
break;
case senderKiKa:
player.src({ type: "application/x-mpegURL", src: senderDW });player.play();
break;
case senderDW:
player.src({ type: "application/x-mpegURL", src: senderONE });player.play();
break;
case senderONE:
player.src({ type: "application/x-mpegURL", src: senderSR });player.play();
break;
case senderSR:
player.src({ type: "application/x-mpegURL", src: senderHR });player.play();
break;
case senderHR:
player.src({ type: "application/x-mpegURL", src: senderSWR });player.play();
break;
case senderSWR:
player.src({ type: "application/x-mpegURL", src: senderBRalpha });player.play();
break;
case senderBRalpha:
player.src({ type: "application/x-mpegURL", src: senderBR });player.play();
break;
case senderBR:
player.src({ type: "application/x-mpegURL", src: senderNDR });player.play();
break;
case senderNDR:
player.src({ type: "application/x-mpegURL", src: senderWDR });player.play();
break;
case senderWDR:
player.src({ type: "application/x-mpegURL", src: senderPhoenix });player.play();
break;
case senderPhoenix:
player.src({ type: "application/x-mpegURL", src: sender3sat });player.play();
break;
case sender3sat:
player.src({ type: "application/x-mpegURL", src: senderZDFinfo });player.play();
break;
case senderZDFinfo:
player.src({ type: "application/x-mpegURL", src: senderZDFneo });player.play();
break;
case senderZDFneo:
player.src({ type: "application/x-mpegURL", src: senderArte });player.play();
break;
case senderArte:
player.src({ type: "application/x-mpegURL", src: senderRBB });player.play();
break;
case senderRBB:
player.src({ type: "application/x-mpegURL", src: senderZDF });player.play();
break;
case senderZDF:
player.src({ type: "application/x-mpegURL", src: senderARD });player.play();
break;
case senderARD:
player.src({ type: "application/x-mpegURL", src: senderN24 });player.play();
break;
}
}
}
10 changes: 5 additions & 5 deletions assets/js/wall.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,7 @@ if (query.programm){
break;
case 'rt':
var player = videojs('telemac-video');
player.src({ type: "application/x-mpegURL", src: "http://rt-lh.akamaihd.net/i/ch_01@325605/index_320p_av-p.m3u8" });player.play();
break;
case 'rtdoc':
var player = videojs('telemac-video');
player.src({ type: "application/x-mpegURL", src: "http://rt-lh.akamaihd.net/i/ch_05@325609/index_320p_av-p.m3u8" });player.play();
player.src({ type: "application/x-mpegURL", src: "http://rt-eng-live.hls.adaptive.level3.net/rt/eng/index.m3u8" });player.play();
break;
case 'france24':
var player = videojs('telemac-video');
Expand All @@ -123,6 +119,10 @@ if (query.programm){
var player = videojs('telemac-video');
player.src({ type: "application/x-mpegURL", src: "http://aljazeera-eng-apple-live.adaptive.level3.net/apple/aljazeera/english/800.m3u8" });player.play();
break;
case 'one':
var player = videojs('telemac-video');
player.src({ type: "application/x-mpegURL", src: "http://wdr_einsfestival-lh.akamaihd.net/i/wdr_einsfestival@328300/master.m3u8" });player.play();
break;

}
}
Expand Down
Binary file removed assets/tvlogos/3sat.png
Binary file not shown.
Binary file removed assets/tvlogos/abc.png
Binary file not shown.
Binary file removed assets/tvlogos/aljazeera.png
Binary file not shown.
Binary file removed assets/tvlogos/ard.png
Binary file not shown.
Binary file removed assets/tvlogos/arte.png
Binary file not shown.
Binary file removed assets/tvlogos/br-alpha.png
Binary file not shown.
Binary file removed assets/tvlogos/br.png
Binary file not shown.
Binary file removed assets/tvlogos/dw.png
Binary file not shown.
Binary file removed assets/tvlogos/france24.png
Binary file not shown.
Binary file removed assets/tvlogos/hr.png
Binary file not shown.
Binary file removed assets/tvlogos/info.png
Binary file not shown.
Binary file removed assets/tvlogos/kika.png
Binary file not shown.
Binary file removed assets/tvlogos/kultur.png
Binary file not shown.
Binary file removed assets/tvlogos/mdr.png
Binary file not shown.
Binary file removed assets/tvlogos/n24.png
Binary file not shown.
Binary file removed assets/tvlogos/ndr.png
Binary file not shown.
Binary file removed assets/tvlogos/neo.png
Binary file not shown.
Binary file removed assets/tvlogos/nhk.png
Binary file not shown.
Binary file removed assets/tvlogos/phoenix.png
Binary file not shown.
Binary file removed assets/tvlogos/rbb.png
Binary file not shown.
Binary file removed assets/tvlogos/rt.png
Binary file not shown.
Binary file removed assets/tvlogos/rtdoc.png
Binary file not shown.
Binary file removed assets/tvlogos/sr.png
Binary file not shown.
Binary file removed assets/tvlogos/swr.png
Binary file not shown.
Binary file removed assets/tvlogos/tagesschau24.png
Binary file not shown.
Binary file added assets/tvlogos/tv-3sat.png
Binary file added assets/tvlogos/tv-abc.png
Binary file added assets/tvlogos/tv-aljazeera.png
Binary file added assets/tvlogos/tv-ard.png
Binary file added assets/tvlogos/tv-arte.png
Binary file added assets/tvlogos/tv-br.png
Binary file added assets/tvlogos/tv-bralpha.png
Binary file added assets/tvlogos/tv-dw.png
Binary file added assets/tvlogos/tv-france24.png
Binary file added assets/tvlogos/tv-hr.png
Binary file added assets/tvlogos/tv-kika.png
Binary file added assets/tvlogos/tv-mdr.png
Binary file added assets/tvlogos/tv-n24.png
Binary file added assets/tvlogos/tv-ndr.png
Binary file added assets/tvlogos/tv-nhk.png
Binary file added assets/tvlogos/tv-one.png
Binary file added assets/tvlogos/tv-phoenix.png
Binary file added assets/tvlogos/tv-rbb.png
Binary file added assets/tvlogos/tv-rt.png
Binary file added assets/tvlogos/tv-sr.png
Binary file added assets/tvlogos/tv-swr.png
Binary file added assets/tvlogos/tv-tagesschau24.png
Binary file added assets/tvlogos/tv-wdr.png
Binary file added assets/tvlogos/tv-zdf.png
Binary file added assets/tvlogos/tv-zdfinfo.png
Binary file added assets/tvlogos/tv-zdfkultur.png
Binary file added assets/tvlogos/tv-zdfneo.png
Binary file removed assets/tvlogos/wdr.png
Diff not rendered.
Binary file removed assets/tvlogos/zdf.png
Diff not rendered.
Loading

0 comments on commit f98dfd9

Please sign in to comment.