tizenbrew-kodi-live 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/icon.png ADDED
Binary file
package/index.html ADDED
@@ -0,0 +1,272 @@
1
+ <!DOCTYPE html>
2
+ <html lang="es">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Kodi Live Launcher</title>
7
+ <style>
8
+ :root {
9
+ --bg: #04020b;
10
+ --card-bg: #0d081e;
11
+ --accent: #0084ff;
12
+ --accent-glow: rgba(0, 132, 255, 0.4);
13
+ --text: #ffffff;
14
+ --text-muted: #8e8a9f;
15
+ --error: #ff4757;
16
+ --success: #2ed573;
17
+ }
18
+
19
+ * {
20
+ box-sizing: border-box;
21
+ margin: 0;
22
+ padding: 0;
23
+ }
24
+
25
+ body, html {
26
+ width: 100%;
27
+ height: 100%;
28
+ background: var(--bg);
29
+ color: var(--text);
30
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
31
+ display: flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ overflow: hidden;
35
+ }
36
+
37
+ .container {
38
+ background: var(--card-bg);
39
+ border: 1px solid rgba(255, 255, 255, 0.08);
40
+ border-radius: 24px;
41
+ padding: 48px;
42
+ width: 640px;
43
+ max-width: 90vw;
44
+ text-align: center;
45
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
46
+ }
47
+
48
+ .logo {
49
+ width: 96px;
50
+ height: 96px;
51
+ margin: 0 auto 24px;
52
+ background: linear-gradient(135deg, #0084ff, #8e44ad);
53
+ border-radius: 20px;
54
+ display: flex;
55
+ align-items: center;
56
+ justify-content: center;
57
+ box-shadow: 0 10px 30px var(--accent-glow);
58
+ }
59
+
60
+ .logo svg {
61
+ width: 56px;
62
+ height: 56px;
63
+ fill: #fff;
64
+ }
65
+
66
+ h1 {
67
+ font-size: 28px;
68
+ font-weight: 700;
69
+ letter-spacing: -0.5px;
70
+ margin-bottom: 8px;
71
+ }
72
+
73
+ .subtitle {
74
+ color: var(--text-muted);
75
+ font-size: 15px;
76
+ margin-bottom: 32px;
77
+ }
78
+
79
+ .status-box {
80
+ background: rgba(255, 255, 255, 0.04);
81
+ border-radius: 14px;
82
+ padding: 16px 20px;
83
+ margin-bottom: 24px;
84
+ display: flex;
85
+ align-items: center;
86
+ justify-content: center;
87
+ gap: 12px;
88
+ font-size: 16px;
89
+ }
90
+
91
+ .spinner {
92
+ width: 20px;
93
+ height: 20px;
94
+ border: 3px solid rgba(255, 255, 255, 0.2);
95
+ border-top-color: var(--accent);
96
+ border-radius: 50%;
97
+ animation: spin 0.8s linear infinite;
98
+ }
99
+
100
+ @keyframes spin {
101
+ to { transform: rotate(360deg); }
102
+ }
103
+
104
+ .url-badge {
105
+ font-family: monospace;
106
+ font-size: 14px;
107
+ color: var(--accent);
108
+ background: rgba(0, 132, 255, 0.1);
109
+ padding: 4px 10px;
110
+ border-radius: 6px;
111
+ display: inline-block;
112
+ margin-top: 8px;
113
+ }
114
+
115
+ .actions {
116
+ display: flex;
117
+ flex-direction: column;
118
+ gap: 12px;
119
+ margin-top: 24px;
120
+ }
121
+
122
+ .btn {
123
+ background: var(--accent);
124
+ color: #fff;
125
+ border: none;
126
+ border-radius: 12px;
127
+ padding: 14px 24px;
128
+ font-size: 16px;
129
+ font-weight: 600;
130
+ cursor: pointer;
131
+ outline: none;
132
+ transition: all 0.2s ease;
133
+ }
134
+
135
+ .btn:focus, .btn:hover {
136
+ background: #006ee0;
137
+ box-shadow: 0 0 0 4px var(--accent-glow);
138
+ transform: translateY(-1px);
139
+ }
140
+
141
+ .btn-secondary {
142
+ background: rgba(255, 255, 255, 0.08);
143
+ color: var(--text);
144
+ }
145
+
146
+ .btn-secondary:focus, .btn-secondary:hover {
147
+ background: rgba(255, 255, 255, 0.16);
148
+ box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
149
+ }
150
+
151
+ .error-msg {
152
+ color: var(--error);
153
+ font-size: 14px;
154
+ margin-top: 12px;
155
+ display: none;
156
+ }
157
+ </style>
158
+ </head>
159
+ <body>
160
+ <div class="container">
161
+ <div class="logo">
162
+ <svg viewBox="0 0 24 24">
163
+ <path d="M12 2L2 12l10 10 10-10L12 2zm0 4.5l5.5 5.5-5.5 5.5-5.5-5.5L12 6.5z"/>
164
+ </svg>
165
+ </div>
166
+ <h1>Kodi Live Launcher</h1>
167
+ <div class="subtitle">Entorno de desarrollo y pruebas en vivo para Samsung TV</div>
168
+
169
+ <div class="status-box" id="statusBox">
170
+ <div class="spinner" id="spinner"></div>
171
+ <span id="statusText">Conectando al servidor Kodi...</span>
172
+ </div>
173
+
174
+ <div>
175
+ <span class="url-badge" id="targetUrl">http://192.168.3.48:8080/kodi.html</span>
176
+ </div>
177
+
178
+ <div class="error-msg" id="errorMsg"></div>
179
+
180
+ <div class="actions" id="actionButtons" style="display: none;">
181
+ <button class="btn" id="btnRetry">Reintentar Conexión</button>
182
+ <button class="btn btn-secondary" id="btnChangeIp">Cambiar IP del Servidor</button>
183
+ </div>
184
+ </div>
185
+
186
+ <script>
187
+ var DEFAULT_HOST = "192.168.3.48:8080";
188
+ var host = localStorage.getItem("kodi_dev_host") || DEFAULT_HOST;
189
+ var targetUrl = "http://" + host + "/kodi.html";
190
+ var statusText = document.getElementById("statusText");
191
+ var spinner = document.getElementById("spinner");
192
+ var errorMsg = document.getElementById("errorMsg");
193
+ var actionButtons = document.getElementById("actionButtons");
194
+ var targetUrlEl = document.getElementById("targetUrl");
195
+ var btnRetry = document.getElementById("btnRetry");
196
+ var btnChangeIp = document.getElementById("btnChangeIp");
197
+
198
+ targetUrlEl.innerText = targetUrl;
199
+
200
+ if (window.tizen && tizen.tvinputdevice) {
201
+ try {
202
+ tizen.tvinputdevice.registerKey("MediaPlayPause");
203
+ tizen.tvinputdevice.registerKey("MediaPlay");
204
+ tizen.tvinputdevice.registerKey("MediaPause");
205
+ tizen.tvinputdevice.registerKey("MediaStop");
206
+ } catch (e) {}
207
+ }
208
+
209
+ function checkAndLaunch() {
210
+ statusText.innerText = "Conectando al servidor PC...";
211
+ spinner.style.display = "block";
212
+ errorMsg.style.display = "none";
213
+ actionButtons.style.display = "none";
214
+
215
+ var checkTimeout = setTimeout(function() {
216
+ showError("Tiempo de espera agotado. Verifica que el servidor esté activo en tu PC.");
217
+ }, 3500);
218
+
219
+ var xhr = new XMLHttpRequest();
220
+ xhr.open("HEAD", "http://" + host + "/kodi.html?t=" + Date.now(), true);
221
+ xhr.onload = function() {
222
+ clearTimeout(checkTimeout);
223
+ if (xhr.status >= 200 && xhr.status < 400) {
224
+ statusText.innerText = "¡Conectado! Iniciando Kodi...";
225
+ spinner.style.display = "none";
226
+ setTimeout(function() {
227
+ window.location.replace("http://" + host + "/kodi.html");
228
+ }, 150);
229
+ } else {
230
+ showError("Servidor respondió con código " + xhr.status);
231
+ }
232
+ };
233
+ xhr.onerror = function() {
234
+ clearTimeout(checkTimeout);
235
+ showError("No se pudo conectar a http://" + host + ". Asegúrate de que el servidor en Ubuntu esté corriendo.");
236
+ };
237
+ xhr.send();
238
+ }
239
+
240
+ function showError(msg) {
241
+ spinner.style.display = "none";
242
+ statusText.innerText = "Error de conexión";
243
+ errorMsg.innerText = msg;
244
+ errorMsg.style.display = "block";
245
+ actionButtons.style.display = "flex";
246
+ btnRetry.focus();
247
+ }
248
+
249
+ btnRetry.addEventListener("click", checkAndLaunch);
250
+ btnChangeIp.addEventListener("click", function() {
251
+ var newHost = prompt("Introduce IP y puerto del PC (ej: 192.168.3.48:8080):", host);
252
+ if (newHost && newHost.trim().length > 0) {
253
+ host = newHost.trim();
254
+ localStorage.setItem("kodi_dev_host", host);
255
+ targetUrl = "http://" + host + "/kodi.html";
256
+ targetUrlEl.innerText = targetUrl;
257
+ checkAndLaunch();
258
+ }
259
+ });
260
+
261
+ document.addEventListener("keydown", function(e) {
262
+ if (e.keyCode === 10009 || e.key === "Return" || e.key === "Escape") {
263
+ if (window.tizen && tizen.application) {
264
+ tizen.application.getCurrentApplication().exit();
265
+ }
266
+ }
267
+ });
268
+
269
+ checkAndLaunch();
270
+ </script>
271
+ </body>
272
+ </html>
package/package.json CHANGED
@@ -1,6 +1,36 @@
1
1
  {
2
2
  "name": "tizenbrew-kodi-live",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "Kodi Piers WebAssembly Live Dev Launcher for Samsung Tizen TV",
5
+ "packageType": "app",
6
+ "appName": "Kodi Live",
7
+ "appPath": "index.html",
8
+ "main": "index.html",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/Ricrdsson1/kodi-tizen-wasm.git"
12
+ },
13
+ "keywords": [
14
+ "tizenbrew",
15
+ "kodi",
16
+ "tizen",
17
+ "samsung"
18
+ ],
19
+ "author": "melchor",
20
+ "license": "GPL-2.0",
21
+ "keys": [
22
+ "MediaPlayPause",
23
+ "MediaPlay",
24
+ "MediaPause",
25
+ "MediaStop",
26
+ "MediaTrackPrevious",
27
+ "MediaTrackNext",
28
+ "MediaRewind",
29
+ "MediaFastForward",
30
+ "ColorF0Red",
31
+ "ColorF1Green",
32
+ "ColorF2Yellow",
33
+ "ColorF3Blue",
34
+ "Info"
35
+ ]
36
+ }
Binary file
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.