From 9c55d849e60bbd01c641b5ce2a61f7e2b8638cdc Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 13 Dec 2018 16:11:47 +0100 Subject: [PATCH 1/4] Add information to video --- script/public/index.html | 65 ++++++++++++++++++++++------------------ script/public/index.js | 33 ++++++++++++++++++++ 2 files changed, 69 insertions(+), 29 deletions(-) create mode 100644 script/public/index.js diff --git a/script/public/index.html b/script/public/index.html index 1695b85e..77e7d38c 100644 --- a/script/public/index.html +++ b/script/public/index.html @@ -3,18 +3,12 @@ TDT Channels - Marc Vila - - - - + + + + + @@ -37,7 +31,7 @@

Reproductor de Televisión

-

Formatos soportados: m3u8

+
@@ -47,13 +41,22 @@
+
+

Información de la reproducción

+ Formatos soportados +
+ m3u8 +

+ Resoluciones disponibles +
+ +

Reproductor de Radio

-

Formatos soportados: nsv

@@ -66,28 +69,18 @@ Your browser does not support the audio element. +
+

Información de la reproducción

+ Formatos soportados +
+ nsv +
\ No newline at end of file diff --git a/script/public/index.js b/script/public/index.js new file mode 100644 index 00000000..e1e2dd13 --- /dev/null +++ b/script/public/index.js @@ -0,0 +1,33 @@ +function getResolution(from) { + $.get(from, function(data) { + $response = data.split("\n"); + + $resolutions=[]; + $.each($response, function( index, value ) { + $line_separated_value = value.split(","); + for (i = 0; i < $line_separated_value.length; i++) { + if ($line_separated_value[i].indexOf("RESOLUTION=") != -1) { + $resolutions.push($line_separated_value[i].split('=')[1]); + } + } + }); + + // TODO: This should be a Callback + updateResolution($resolutions); + }); +} + +function getUrlParameter(sParam) { + var sPageURL = decodeURIComponent(window.location.search.substring(1)), + sURLVariables = sPageURL.split('&'), + sParameterName, + i; + + for (i = 0; i < sURLVariables.length; i++) { + sParameterName = sURLVariables[i].split('='); + + if (sParameterName[0] === sParam) { + return sParameterName[1] === undefined ? true : sParameterName[1]; + } + } +}; \ No newline at end of file From f0672ec6312c1d76ff0eddc6d662e54487b02467 Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 13 Dec 2018 19:21:15 +0100 Subject: [PATCH 2/4] Add legal and improve JS --- script/public/index.html | 15 +++++++++++++-- script/public/index.js | 5 ++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/script/public/index.html b/script/public/index.html index 77e7d38c..0e6e64de 100644 --- a/script/public/index.html +++ b/script/public/index.html @@ -12,7 +12,7 @@ -
+

TDTChannels

Bienvenido al reproductor del proyecto opensource TDTChannels @@ -78,6 +78,17 @@

+ + \ No newline at end of file From 4c368c96028195b4560f7b49570ad61cc97ed1b5 Mon Sep 17 00:00:00 2001 From: Marc Vila Date: Sat, 15 Dec 2018 15:27:52 +0100 Subject: [PATCH 4/4] Update logos --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 481e1187..87a67060 100644 --- a/README.md +++ b/README.md @@ -277,13 +277,13 @@ Si localizas algún fallo, o deseas añadir algún canal, puedes contactarme o a | Televisión Canaria | [m3u8](http://streaming2.mad.idec.net/rtvcnet/rtvcnet.drb.smil/Playlist.m3u8) | [web](http://www.rtvc.es/television/directo.aspx) | - | [Logo](https://upload.wikimedia.org/wikipedia/commons/thumb/0/01/Logo_de_Televisi%C3%B3n_Canaria.svg/1280px-Logo_de_Televisi%C3%B3n_Canaria.svg.png) | - | | Mírame TV | - | [web](https://mirametv.com/) | - | [Logo](https://www.mirametv.com/images/wSystem/logo.png) | - | | El Día TV | [m3u8](http://vs8.live.opencaster.com/opencaster/zmyrfjHztaoj/playlist.m3u8) | [web](http://eldia.tv/) | - | [Logo](http://eldia.tv/blog/wp-content/uploads/2016/06/eldiatv.png) | - | -| Lancelot TV | [m3u8](http://62.210.141.18:1935/directo/lancelot.television/playlist.m3u8) | [web](http://www.lancelot.tv/directo)| - | [Logo](http://www.lancelot.tv/images/logo.svg) | - | +| Lancelot TV | [m3u8](http://62.210.141.18:1935/directo/lancelot.television/playlist.m3u8) | [web](http://www.lancelot.tv/directo)| - | [Logo](http://www.lancelot.tv/images/logo.png) | - | | Canal 4 Tenerife | [m3u8](https://5940924978228.streamlock.net/Directo2/Directo2/chunklist_w588840931.m3u8) | [web](http://www.canal4tenerife.tv/) | - | [Logo](http://www.canal4tenerife.tv/wp-content/uploads/2017/02/LOGO-CANAL-4-azul-80.png) | - | | Tindaya TV | [m3u8](https://streaming-fr02.enetres.net/0537FCE9817D4E9E930B6ED4D9C7BD5C021/smil:live.smil/chunklist_w365927815_b1000000.m3u8) | [web](https://www.tindayatv.com/) | - | [Logo](https://3.bp.blogspot.com/-Rq81jbqjWb4/WXifCezpqoI/AAAAAAAAwxc/RycTr3iKG50UqHjLXy1JzlZwLUikE1KQgCLcBGAs/s640/tindaya-tv-.png) | - | | Canal 4 TV | - | [web](https://canal4tvtelde.es/en-directo) | - | [Logo](https://canal4tvtelde.es/media/k2/categories/72.jpg) | - | | Biosfera TV | - | [web](http://www.biosferatv.es/) | - | [Logo](http://www.biosferatv.es/gallery_gen/c8ad7ac64fa30f24cfb063f403bfe5d5_280x70.png) | - | | Este Canal TV | - | [web](https://livestream.com/estecanaltv/events/7051352) | - | [Logo](https://pbs.twimg.com/profile_images/1244322522/logo_estacanal.jpg) | - | -| Canal 13 Digital | [m3u8](http://212.40.234.65/live/canal13/playlist.m3u8) | [web](https://rtvos5.wixsite.com/canal13) | - | [Logo](https://static.wixstatic.com/media/a9aebc_3c86b1b933ac4eb0884ebd62f1261547~mv2_d_3882_3882_s_4_2.png/v1/crop/x_309,y_0,w_3265,h_3882/fill/w_132,h_168,al_c,q_80,usm_0.66_1.00_0.01/a9aebc_3c86b1b933ac4eb0884ebd62f1261547~mv2_d_3882_3882_s_4_2.webp) | - | +| Canal 13 Digital | [m3u8](http://212.40.234.65/live/canal13/playlist.m3u8) | [web](https://rtvos5.wixsite.com/canal13) | - | [Logo](https://i1.wp.com/directostv.teleame.com/wp-content/uploads/2018/02/canal-13-digital.png) | - | | Gigante TV | [m3u8](http://85.214.130.95:8080/live/stream.m3u8) | [web](http://gigantetv.es/) | - | [Logo](http://gigantetv.es/wp-content/uploads/2017/02/cropped-prueba-gigante2.jpg) | - | | Mi Tierra Televisión | - | [web](http://www.mitierratelevision.com/directo/) | - | [Logo](http://www.mitierratelevision.com/wp-content/themes/mitierraTV/gfx/logoMT_sintexto.png) | - | | Televisión Mogán | [m3u8](https://5b38ce71f1f00.streamlock.net/8162/8162/chunklist_w1059529458.m3u8) | [web](http://www.mogan.es/45-radio-television-de-mogan/3382-ver-television-mogan) | - | [Logo](https://i2.wp.com/directostv.teleame.com/wp-content/uploads/2018/03/television-mogan.png) | - |