-
Notifications
You must be signed in to change notification settings - Fork 0
/
saxumtv.html
615 lines (502 loc) · 22.7 KB
/
saxumtv.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
<!DOCTYPE html>
<html lang="en">
<head>
<title>Saxum Station Tv</title>
<meta charset="utf-8">
<title>Radio Station Saxum </title>
<meta charset="utf-8">
<meta name="robots" content="index"/>
<meta name="description" content=" saxum stations Rock Music tv,videos de Punk Rock,Heavy Metal, Folk Rock,Rock Industrial">
<meta name="keywords" content="tv, station , saxum,rock, videos, music,Rock Music, Punk Rock,Heavy Metal, Folk Rock,Rock Industrial">
<meta property="og:type" content="article" />
<meta property="og:title" content=" saxum station tv saxum tv videos musicales " />
<meta property="og:url" content="https://sciostation.github.io/saxumtv.html" />
<meta property="og:image"
content="images/SaxumStation.png" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<style>
/* Set height of the grid so .sidenav can be 100% (adjust if needed) */
.row.content {height: 1500px}
/* Set gray background color and 100% height */
.sidenav {
background-color: #f1f1f1;
height: 100%;
}
/* Set black background color, white text and some padding */
footer {
background-color: #555;
color: white;
padding: 15px;
}
/* On small screens, set height to 'auto' for sidenav and grid */
@media screen and (max-width: 767px) {
.sidenav {
height: auto;
padding: 15px;
}
.row.content {height: auto;}
}
</style>
</head>
<body>
<div class="container-fluid">
<div class="row content">
<div class="col-sm-3 sidenav">
<h4>Saxum Station</h4>
<ul class="nav nav-pills nav-stacked">
<li class="active"><a href="saxum.html">Saxum Station</a></li>
<li><a href="saxumtv.html">Saxum Station Tv</a></li>
</ul><br>
<div class="input-group">
<input type="text" class="form-control" placeholder="Search Blog..">
<span class="input-group-btn">
<button class="btn btn-default" type="button">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</div>
</div>
<div class="col-sm-9">
<h4><small>RECENT POSTS</small></h4>
<hr>
<h2>Saxum Station Tv</h2><br>
<div class="media-center">
<img src="images/saxum station tv.png" class="img-circle" height="100" width="100" alt="Saxum Station TV"></div>
<h5><span class="glyphicon glyphicon-time"></span> Post by Jane , <b><script>
var meses = new Array ("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
var diasSemana = new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado");
var f=new Date();
document.write(diasSemana[f.getDay()] + ", " + f.getDate() + " de " + meses[f.getMonth()] + " de " + f.getFullYear());
</script></b>.</h5>
<h5><span class="label label-danger">Natio</span> <span class="label label-primary">Saxum Station Tv</span></h5><br>
<p>Saxum Station Rock Music.</p>
<br>
<br>
<p>Copia esta direccion y pegala en vlc segun el video</p>
<p>medios>abrir ubicacion red> pegar el url >reproducir</p>
<textarea id="textArea">https://bit.ly/3rJWYTO</textarea>
<br>
<button onclick="copyToClipBoard()">Copy</button>
<script src="js/copy.js"></script>
<br>
<h4><small>RECENT POSTS</small></h4>
<h2>Saxum Station Tv</h2>
<h5><span class="glyphicon glyphicon-time"></span> Post by John Doe, <b><script>
var meses = new Array ("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
var diasSemana = new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado");
var f=new Date();
document.write(diasSemana[f.getDay()] + ", " + f.getDate() + " de " + meses[f.getMonth()] + " de " + f.getFullYear());
</script></b>.</h5>
<h5><span class="label label-success">Tv</span></h5><br>
<p>.</p>
<div style="margin:auto; width:500px;">
<div id="mi_video_player" style="clear:both; width:500px; height:281px; margin:0px; padding:0px;border:0px;"></div>
<!--
creamos un div para mostrar el reproductor de youtube
lo bautizamos con id="mi_video_player"
definimos sus ancho y alto con width:500px; height:281px;
-->
<div style="margin:0px; padding:0px;border:0px;">
<strong>Titulo: </strong> <span id="cancion"></span>
<strong>Interprete:</strong> <span id="autor"></span><br>
<!--
creamos dos span vacÃos para mostrar el intérpete y nombre de la canción
-->
</div>
</div>
<script>
var video_a_mostar = 0;
// variable para almacenar el video a mostrar
var situacion_del_video;
// variable para almacenar la situacion del video
// la situacion del video la proporciona la api de youtube
// los valores posibles son:
// 0 el video ha terminado
// 1 el video se esta reproduciendo
// 2 el video esta pausado
// 3 el video esta almacenandose localmente
// 4 el video esta listo para reproducirse
// -1 el video no ha iniciado
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
// creamos un array multidimensional con la playlist de los videos a reproducir
// cada elemnto del array tiene:
// ["interperete","nombre de la cancion","youtube video id"],
// Ejemplo:
// ["Amy Winehouse ","You Know I am No Good ","b-I2s5zRbHg"],
// El youtube video id se extrae de la url del video
// Ejemplo de url del video:
// https://www.youtube.com/watch?v=b-I2s5zRbHg
// el valor del parametro v es el youtube video id
// En este caso: b-I2s5zRbHg
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
var playlist =
[
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","VPE2iB2e_Dk"],
["vincorocks ","alien","U_Xc-rKGZGs"],
["vincorocks ","Saxum Station Rock Music","tKNRT6VWYyw"],
["vincorocks ","Profundidades del Tiempo","Cnw_OWBWFCM"],
["publicidad ","tu mejor compra","ML75bzrZOis"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","2bOKyg_tlVY"],
["Alaska y Dinarama","A Quién Le Importa","2uQhdDtdXg0"],
["tino casal "," eloise ","BunJzpnh7T4"],
["Duncan Dhu","En Algún Lugar ","7K5HM8bOwaM"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","VPE2iB2e_Dk"],
["la union","lobo hombre en paris","sl4GO6pgRas"],
["Duncan Dhu ","a tu lado ","AdUzvrxJWq8"],
["Vicentico","algo contigo ","ZDgyVKHuG8M"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","VPE2iB2e_Dk"],
["Café Tacvba","eres","98Akpf1ph2o"],
["When In Rome ","The Promise","5HI_xFQWiYU"],
["Whitesnake"," Is This Love ","GOJk0HW_hJw"],
["White Lion","When The Children Cry","6tatKFXlYiY"],
["Def Leppard ","Hysteria","yMzyleT2FqY"],
["Scorpions","Send Me An Angel","1UUYjd2rjsE"],
["Europe ","Carrie","KmWE9UBFwtY"],
["Billy Idol","Eyes Without A Face ","9OFpfTd0EIs"],
["Cinderella","Don't Know What You Got ","i28UEoLXVFQ"],
["Heart","Alone ","1Cw1ng75KP0"],
["Simple Minds","forget About Me ","CdqoNKCCt7A"],
["Naked Eyes","Always Something There To Remind Me ","lVrELhxOFnM"],
["Howard Jones","No One Is To Blame ","pekhxxngQ3s"],
["Glass Tiger"," Don't Forget Me ","Jx6_-urg5fo"],
["Midnight Oil"," Beds Are Burning","ejorQVy3m8E"],
["Tears For Fears "," Shout ","Ye7FKc1JQe4"],
["Tears For Fears"," Everybody Wants To Rule The World ","aGCdLKXNF3w"],
["Toto"," africa","FTQbiNvZqaY"],
["INXS","Never Tear Us Apart","AIBv2GEnXlc"],
["Information Society"," Repetition","yGp4CEkl7Ns"],
["Erasure"," A Little Respect","x34icYC8zA0"],
["Erasure"," Oh L'Amour","VEkhsxIFK7g"],
["Erasure","Sometimes ","S1a8QABKNo0"],
["Natalie Imbruglia","Torn ","xSZBIs0gs0E"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","tKNRT6VWYyw"],
["publicidad ","tu mejor compra","ML75bzrZOis"],
["vincorocks ","Saxum Station Rock Music","VPE2iB2e_Dk"],
["The Cranberries","Linger","G6Kspj3OO0s"],
["The Cardigans","Lovefool","xwtdhWltSIg"],
["The Cardigans","My Favourite Game ","u9WgtlgGAgs"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","VPE2iB2e_Dk"],
["publicidad ","tu mejor compra","ML75bzrZOis"],
["Garbage"," I Think I'm Paranoid ","ypr18UmxOas"],
["Garbage"," Only Happy When It Rains ","GpBFOJ3R0M4"],
["Garbage"," Stupid Girl ","rdw-e9UXW50"],
["Garbage","Special","raRGnueg8Lo"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","VPE2iB2e_Dk"],
["publicidad ","tu mejor compra","ML75bzrZOis"],
["No Doubt "," Don't Speak ","TR3Vdo5etCQ"],
["No Doubt "," It's My Life ","ubvV498pyIM"],
["No Doubt "," Hey Baby ","wt1YkGO2Ieo"],
["No Doubt "," Hella Good ","QtTj4cramPM"],
["Pat Benatar","Love Is A Battlefield ","IGVZOLV9SPo"],
["Before I Forget","Slipknot Drum Cover ","b_5Z3wby3tU"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","tKNRT6VWYyw"],
["publicidad ","tu mejor compra","up8s20hIvJM"],
["vincorocks ","Saxum Station Rock Music","VPE2iB2e_Dk"],
["vincorocks ","Saxum Station Rock Music","tKNRT6VWYyw"],
["Alphaville","Big in Japan","DdWZKb659K0"],
["Alphaville ","Forever Young ","t1TcDHrkQYg"],
["Faith No More","Easy ","vPzDTfIb0DU"],
["vincorocks ","Saxum Station Rock Music","VPE2iB2e_Dk"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","tKNRT6VWYyw"],
["When In Rome","The Promise ","5HI_xFQWiYU"],
["a-ha","Take On Me","djV11Xbc914"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","tKNRT6VWYyw"],
["Tears For Fears","Everybody Wants To Rule The World","aGCdLKXNF3w"],
["Tears For Fears","Shout","Ye7FKc1JQe4"],
["Tears For Fears","Head Over Heels ","CsHiG-43Fzg"],
["Tears For Fears","Sowing The Seeds Of Love","VAtGOESO7W8"],
["Tears For Fears","Break It Down Again","x1100QINlo4"],
["Tears For Fears"," Mad World ","u1ZvPSpLxCg"],
["vincorocks ","Saxum Station Rock Music","tKNRT6VWYyw"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","2bOKyg_tlVY"],
["publicidad ","tu mejor compra","up8s20hIvJM"],
["Sandra Cretu"," In The Heat Of The Night ","IzQSiqAqS-M"],
["Martika","Toy Soldiers ","LvdLovAaYzM"],
["Sandra Cretu","maria magdalena","yUc5TvYynAs"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","tKNRT6VWYyw"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","2bOKyg_tlVY"],
["Yazoo","Don't Go","_sQGwDeambg"],
["Yazoo","Situation","MUijJbEyMiI"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","tKNRT6VWYyw"],
["Men At Work","Who Can It Be Now?","SECVGN4Bsgg"],
["Men At Work","Overkill","RY7S6EgSlCI"],
["Men At Work","It's a Mistake ","I0AxrOUJ62E"],
["Men At Work","Down Under","XfR9iY5y94s"],
["The Police","Every Little Thing She Does Is Magic","aENX1Sf3fgQ"],
["The Police","Spirits In The Material World","BHOevX4DlGk"],
["The Police","Don't Stand So Close To Me","KNIZofPB8ZM"],
["The Police","Wrapped Around Your Finger","svWINSRhQU0"],
["The Police","Roxanne","3T1c7GkzRQQ"],
["The Police","Every breath you take","hl3c6j0mwNc"],
["vincorocks ","Saxum Station Rock Music","tKNRT6VWYyw"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","2bOKyg_tlVY"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","tKNRT6VWYyw"],
["Sting","Shape of My Heart","QK-Z1K67uaA"],
["Sting","Englishman In New York","d27gTrPPAyk"],
["Sting","Fragile","lB6a-iD6ZOY"],
["Sting","When We Dance","aWjfONP51G4"],
["Sting","If You Love Somebody Set Them Free","LSGl3d4KOMk"],
["When in Rome","Heaven Knows","2SbXEClpDcw"],
["The Human League","Don't You Want Me ","uPudE8nDog0"],
["The Human League","Fascination","QqqBs6kkzHE"],
["The Human League","Human","s1ysoohV_zA"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","VPE2iB2e_Dk"],
["Visage","Fade To Grey","UMPC8QJF6sI"],
["When In Rome ","The Promise","5HI_xFQWiYU"],
["Faith No More","EASY","vPzDTfIb0DU"],
["Faith no more","EPIC","ZG_k5CSYKhg"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","VPE2iB2e_Dk"],
["Depeche Mode","Policy Of Truth","M2VBmHOYpV8"],
["Depeche Mode","Enjoy The Silence","aGSKrC7dGcY"],
["Depeche Mode","Personal Jesus","u1xrNaTO1bI"],
["Depeche Mode","Strangelove ","JIrm0dHbCDU"]
["Depeche Mode","Just Can't Get Enough","ON8bfyAwL_8"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","VPE2iB2e_Dk"],
["The Outfield","for you love ","OP0bnO25ALg"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","VPE2iB2e_Dk"],
["Extreme ","More Than Words ","UrIiLvg58SY"],
["Hoobastank"," The Reason ","fV4DiAyExN0"],
["Incubus","drive ","fgT9zGkiLig"],
["The Wallflowers ","One Headlight ","Zzyfcys1aLM"],
["The Wallflowers ","Heroes","uDiXqjwb7Sg"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","VPE2iB2e_Dk"],
["Depeche Mode","Preciosa","8yn3ViE6mhY"],
["When In Rome ","The Promise","5HI_xFQWiYU"],
["Faith No More","EASY","vPzDTfIb0DU"],
["Faith no more","EPIC","ZG_k5CSYKhg"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","VPE2iB2e_Dk"],
["Gotye","Somebody That I Used To Know","8UVNT4wvIGY"],
["Duran Duran","Ordinary World ","FqIACCH20JU"],
["Duran Duran"," Come Undone ","Epj84QVw2rc"],
["Duran Duran"," Hungry like the Wolf ","oJL-lCzEXgI"],
["Duran Duran"," Notorious ","Z9z0e1Wm64M"],
["Duran Duran"," Wild Boys ","PlhJzqmt5JE"],
["Depeche Mode","Personal Jesus","u1xrNaTO1bI"],
["Depeche Mode","Strangelove ","JIrm0dHbCDU"]
["Depeche Mode","Just Can't Get Enough","ON8bfyAwL_8"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","VPE2iB2e_Dk"],
["Shocking Blue","Venus ","8LhkyyCvUHk"],
["Shocking Blue"," Never Marry A Railroad Man ","amFm3Ihosig"],
["The Outfield","for you love ","OP0bnO25ALg"],
["Erasure ","Chains of Love ","6J2OlIpQgF8"],
["Erasure ","Sometimes ","S1a8QABKNo0"],
["Erasure ","Take a Chance on Me ","L-d4J3YUQmU"],
["Erasure ","Sometimes ","S1a8QABKNo0"],
["Erasure ","Sometimes ","S1a8QABKNo0"],
["Erasure ","Take a Chance on Me ","L-d4J3YUQmU"],
["Erasure ","Sometimes ","S1a8QABKNo0"],
["Limahl","Never Ending Story ","2WN0T-Ee3q4"],
["Radio Saxum Station tv Rock Music ","Radio Saxum Station Rock Music tv","VPE2iB2e_Dk"],
];
var total_videos = playlist.length - 1;
//variable para almacenar cuantos videos tieene la playlist
var player;
// crea el player para los videos
window.onYouTubeIframeAPIReady = function()
// la api de youtube tiene sus propiedades, metodos y eventos propios
// onYouTubeIframeAPIReady es un evento de la api de yoube
// window.onYouTubeIframeAPIReady cuando la api de youtube esté lista...
{
player = new YT.Player('mi_video_player',
// creamos un nuevo reproductor
// el video se mostrará en el div llamado'mi_video_player
{
width: '500',
// el reproductor tendra un ancho de 500 pixeles
height: '281',
// el reproductor tendra un ancho de 281 pixeles
playerVars: { 'autoplay': 1, 'controls': 0, 'disablekb':0, 'enablejsapi':1, 'iv_load_policy':3, 'rel':0, 'showinfo':0 },
// pasamos variables al reproductor
// 'autoplay': 1 inicia la reproducciòn del video automaticamente
// 'controls': 0 no muestra los controles del video (pausa, stop, next, volumen)
// 'disablekb':0 desactiva el teclado de la computadora para controlar el video
// 'enablejsapi':1 permite controlar el reproductor con javascript
// 'iv_load_policy':3 desactiva las horrendas video anotaciones
// 'rel':0 no muestra videos relacionados
// 'showinfo':0 oculta la informacion del video (titulo y autor)
events:
// creamos eventos para nuestro reproductor de videos
{
'onReady': el_reproductor_esta_listo,
// cuando el reproductor este listo, ejecutaremos la funcion el_reproductor_esta_listo
'onStateChange': el_reproductor_cambio_de_estado
// cuando el video cambie de estado, ejecutaremos la funcion el_reproductor_cambio_de_estado
}
});
}
function el_reproductor_esta_listo(event)
// definimos la funcion el_reproductor_esta_listo
// esta funcion se ejecutara cuando el reproductor este listo
// event es una variable que pasa automaticamente la API de youtube
{
next();
// ejecutar la funcion next()
}
function el_reproductor_cambio_de_estado(event)
// definimos la funcion el_reproductor_cambio_de_estado
// esta funcion se ejecutara cuando el video cambie de estado
// event es una variable que pasa automaticamente la API de youtube
{
situacion_del_video = event.data;
// cuando el video cambie de estado
// modificamos el valor de la variable situacion_del_video
if (event.data == 0)
// si el video termino de reproducirse
{
next();
// ejecutar la funcion next()
// mostraremos otro video con la funcion next()
}
if (event.data == -1)
// si el video no ha iniciado
// todos los videos presentan la situación no iniciado
// algunos videos no habrán iniciado, pero comenzarán a transmitir datos
// algunos videos nunca iniciarán
// si el video fue borrrado, nunca iniciará
// si el video no puede insertarse en el reproductor, nunca iniciará
// para evitar que el reproductor colapse por que el video fue borrado
// o por que se impide su reproducción fuera de youtube
// creamos una funcion
{
timeout_mostrar_video = window.setTimeout(kill_timeout_video, 3000);
// creamos una cuenta regresiva
// al finalizar la cuenta regresiva se ejecutará la función kill_timeout_video
// en 3 segundos se ejecutara la funcion kill_timeout_video
}
}
function kill_timeout_video()
// tras ejecutar una cuenta regresiva
// ejecutaremos la funcion kill_timeout_video()
{
window.clearTimeout(timeout_mostrar_video);
// destruye la cuenta regresiva
if(situacion_del_video == -1)
// si la situacion del video sigue siendo -1 tras 3 segundos...
// si el video no ha iniciado tras tres segundos...
// mostraremos otro video con la funcion next()
{
next();
// ejecutar la funcion next()
}
}
function next()
// creamos la funcion next
{
reproducir();
// next ejecuta la función reproducir();
}
function reproducir()
// creamos la función reproducir()
{
video_a_mostrar_src = playlist[video_a_mostar][2];
// recuperarmo el yotube video id de nuestro array multidimensional
// video_a_mostrar_src almacenará el elemento 2 del array que almacena los datos del video
// en este caso el elemento 2 es el youtube video id
// video_a_mostar se refiere al elemento dentro del array que almacena la playlist
// video_a_mostar tiene un valor de 0 al inicio
// empezaremos con el elemento 0, el primero en el array que almacena la playlist
document.getElementById('autor').innerHTML = playlist[video_a_mostar][0];
// de manera dinamica mostraremos el autor del video
// el autor del video lo mostrarmos en el span llamado autor
// accedemos a los elementos del array multidimensional
// recuperamos el elemento 0 del array que almacena los datos del video
// en este caso el autor
// video_a_mostar se refiere al elemento dentro del array que almacena la playlist
// video_a_mostar tiene un valor de 0 al inicio
// empezaremos con el elemento 0, el primero en el array que almacena la playlist
document.getElementById('cancion').innerHTML = playlist[video_a_mostar][1];
// de manera dinamica mostraremos el titulo del video
// el titulo del video lo mostrarmos en el span llamado cancion
// accedemos a los elementos del array multidimensional
// recuperamos el elemento 1 del array que almacena los datos del video
// en este caso el titulo del video
// video_a_mostar se refiere al elemento dentro del array que almacena la playlist
// video_a_mostar tiene un valor de 0 al inicio
// empezaremos con el elemento 0, el primero en el array que almacena la playlist
mostrar_video(video_a_mostrar_src);
//ejecutamos la función mostrar_video con la variable video_a_mostrar_src
// video_a_mostrar_src almacena el yotube video id
if(video_a_mostar < total_videos)
// verificamos que el video a mostrar no sea el ultimo de la playlist
// verificamos que el video a mostrar no este al final del array
{
video_a_mostar += 1;
// si no es el ultimo, el siguiente será el siguiente en la lista
}
else
{
video_a_mostar = 0;
// si es el ultimo video
// comenzaremos a mostrar videos nuevamente
// desde el principio
}
}
function mostrar_video(url)
// funcion para mostar el video
{
player.loadVideoById({videoId:url,suggestedQuality:"small"});
// cargar video en baja resolucion
// loadVideoById() es un metodo de la apideyoube
// videoId: es el youtube video id
// suggestedQuality: define la calidad del video
// player.loadVideoById({videoId:url,suggestedQuality:"hd720"});
// cargar el video en hd
player.playVideo();
// una vez cargado el video, lo reproducimos
// playVideo() es un metodo de la apideyoube
}
next();
// ejecutamos la función next
</script>
<script src="https://www.youtube.com/iframe_api"></script>
<!--
la api de youtube se almacena en los servidores de youtube
tenemos que descargarla DESDE Los servidores de youtube.
-->
<br>
<br><br><hr>
<hr>
<h4>Leave a Comment:</h4>
<form role="form">
<div class="form-group">
<br><br>
<p><span class="badge">2</span> Comments:</p><br>
<div class="row">
<div class="col-sm-2 text-center">
<img src="images/saxum station tv.png" class="img-circle" height="80" width="80" alt="Avatar">
</div>
<div class="col-sm-10">
<h4>Saxum Station Tv <small>Sep 29, 2022, 9:12 PM</small></h4>
<p>Saxum Station Rock Music.</p>
<br>
</div>
<div class="col-sm-2 text-center">
<img src="images/SaxumStation.png" class="img-circle" height="65" width="65" alt="Avatar">
</div>
<div class="col-sm-10">
<h4>Radio Saxum Station <small>Sep 25, 2015, 8:25 PM</small></h4>
<p>Radio Saxum Rock Music.</p>
<br>
</div>
<div class="row">
<div class="col-sm-2 text-center">
</div>
<div class="col-xs-10">
<h4><small></small></h4>
<p></p>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="container-fluid">
<p>Saxum Station Tv</p>
</footer>
</body>
</html>