Como crear un embed js como el de pirlotv

  • Autor Autor idolotv
  • Fecha de inicio Fecha de inicio
idolotv

idolotv

Épsilon
Verificación en dos pasos activada
borrar el tema
 
Última edición:
Si abrieras el .js lo sabrías XD

- - - Actualizado - - -

Tiene algo se php, es un poco diferente, pero yo lo haría así:

embed.js:

Insertar CODE, HTML o PHP:
function tvonline(canalID, width, height) {
if (!height) {
height = '360';
}
if(!width) {
width = '600';
}
var output = '<iframe src="http://laweb.com/embed/canal.php?id='+canalID+'&width='+width+'&height='+height+'" width="'+width+'" height="'+height+'" frameborder="0" scrolling="no"></iframe>';
document.write(output);
}

canal.php
PHP:
<iframe src="url-de-streaming" width="<?php echo $_GET['width'] ?>" height="<?php echo $_GET['height'] ?>" frameborder="0" scrolling="no"></iframe>

Algo así haría yo XD

Para que te iframaran solo tendrías que poner por ejemplo:

HTML:
<script>tvonline('history', 600, 360);</script><script src="http://laweb.com/embed.js"></script>
 
Última edición:
Gracias por tu ayuda, Pero me gustaria hacer un embed parecido con uno de mis senales osea con este canal
 
Última edición:
He de suponer que te refieres que quieres todo este alojado en tu sitio no?
 
Atrás
Arriba