Ver Mensaje Individual
  #11 (permalink)  
Antiguo 16/09/2014, 08:23
PHPeros
Colaborador
 
Fecha de Ingreso: septiembre-2013
Ubicación: España
Mensajes: 3.648
Antigüedad: 10 años, 8 meses
Puntos: 578
Respuesta: Detener video html5 cargado con iframe

Muy sencillo:

Código Javascript:
Ver original
  1. var lastHeight = 0, curHeight = 0, $frame = $('iframe:eq(0)'),
  2.     curHeight = $frame.contents().find('body').height();
  3.     if ( curHeight != lastHeight ) {
  4.         $frame.css('height', (lastHeight = curHeight) + 'px' );
  5.     }