<!doctype html>
< html lang = "es" >
< head >
< meta charset = "utf-8" / >
< meta http-equiv = "x-ua-compatible" content = "ie=edge" >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
< title > sintoniza.sindominio.net - tu streaming en sindominio - plataforma de emisiones en directo autogestionada por sindominio.net< / title >
< link rel = "stylesheet" href = "assets/video-js.min.css" >
< link rel = "stylesheet" href = "assets/styles-sintoniza.css" >
< style type = "text/css" >
< / style >
< / head >
< body class = "" >
< main class = "contain" >
< header class = "" >
< h1 id = "title" > sintoniza.sindominio.net< / h1 >
< / header >
< content class = "live-streaming" >
< video id = "video" class = "video-js" controls preload = "auto" data-setup = "{}" > < / video >
< div id = "instructions" style = "display:none;" >
< p >
Para crear un nuevo stream, escoge un < em > nombre_stream< / em > único (una palabra que tenga sentdio para tu emisión) para ello y ponlo en tu sofware de emisión de manera que envie la señal a < em > rtmp://sintoniza.sindominio.net/entrada/< / em > con una llave (strem key) < i > nombre_stream< / i > que tu quieras.
< / p >
< p >
En ese momento podrás ver el directo en:
< i > https://sintoniza.sindominio.net/#< b > nombre_stream< / b > < / i > .
< / p >
< p >
Tambien puedes apuntar tu reproductor de video favorito a la URL
< i > https://sintoniza.sindominio.net/canal/< b > nombre_stream< / b > .m3u8< / i > . Usa este mismo enlace para incrustar el vídeo en tu web.
< / p >
< / div >
< / content >
< footer class = "" >
< / footer >
< / main >
< script src = "assets/jquery-slim.min.js" > < / script >
< script src = "assets/video-js.min.js" > < / script >
< script >
$(function() {
if (window.location.hash) {
var name = window.location.hash.substr(1);
console.log('playing "' + name + '"');
$('#title').text('sintoniza.sindominio.net - ' + name);
var v = videojs('video');
v.src({type: 'application/x-mpegURL', src: '/canal/' + name + '.m3u8'});
} else {
$('#video').hide();
$('#instructions').show();
}
});
< / script >
< / body >
< / html >