Commit f57648e8 authored by NikaZhenya's avatar NikaZhenya
Browse files

Arreglo para que video no se desborde y siempre esté centrado

parent 7ca11d11
This diff is collapsed.
# Streaming
Genera un sitio que muestra un stream de video en distintos formatos a
partir de una fuente Icecast.
El sitio se encarga de recuperar la transmisión cuando se corta.
## Uso
Modificar el archivo `_config.yml`:
```yaml
title: MIAU Dev
lang: es
markdown: kramdown
streaming:
url: https://trans.kefir.red
stream: miaudev
formats:
- webm
- mp4
```
El parámetro `url` es la dirección base del servidor Icecast. `stream`
es el nombre del video, el `canal` en terminología de Icecast.
Los `formats` son los formatos de video disponibles, al menos tiene que
haber uno.
Colocar en el archivo `assets/cover.jpg` la portada de los videos y
en `assets/favicon.gif` el icono del sitio.
/**************************************************/
/******************* RESETEADOR *******************/
/**************************************************/
/* http://meyerweb.com/eric/tools/css/reset/ v2.0 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* Old browsers / Para viejos exploradores */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1.5;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/**************************************************/
html, body {
margin: 0;
padding: 0;
background: black;
}
/* Ver el video en pantalla completa */
.full {
min-width: 100%;
min-height: 100%;
}
.full video {
width: 100vw;
height: 100vh;
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: auto;
max-height: 100%;
margin-right: -50%;
transform: translate(-50%, -50%);
z-index: 0;
}
......@@ -2,9 +2,9 @@
<html lang="es">
<head>
<meta charset="UTF-8">
<title>MIAU Dev</title>
<title>MiauDev</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="assets/favicon.gif">
<link href="assets/main.css" rel="stylesheet" />
<script type="text/javascript" src="assets/streaming.js"></script>
</head>
......
{
"requires": true,
"lockfileVersion": 1,
"dependencies": {
"zepto": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/zepto/-/zepto-1.2.0.tgz",
"integrity": "sha1-4Se9nmb9hGvl6rSME5SIL3wOT5g="
}
}
}
......@@ -63,10 +63,23 @@ table {
html, body {
margin: 0;
padding: 0;
background: black;
}
/* Ver el video en pantalla completa */
.full {
min-width: 100%;
min-height: 100%;
}
.full video {
width: 100vw;
height: 100vh;
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: auto;
max-height: 100%;
margin-right: -50%;
transform: translate(-50%, -50%);
z-index: 0;
}
{
"requires": true,
"lockfileVersion": 1,
"dependencies": {
"zepto": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/zepto/-/zepto-1.2.0.tgz",
"integrity": "sha1-4Se9nmb9hGvl6rSME5SIL3wOT5g="
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment