Can I Embed a Muted Video Using an Iframe?

  • Autor Autor emilio91betis
  • Fecha de inicio Fecha de inicio
E

emilio91betis

Gamma
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Existe la posibilidad de poner un iframe de algun video con la opción de que aparezca silenciado desde el principio??
gracias
 
dependiendo del reproductor, es posible sin duda.

Usualmente hay parámetros para eso.

kj
 
Prueba este

Insertar CODE, HTML o PHP:
<!-- 1. The <div> tag will contain the <iframe> (and video player) -->
    <div id="player"></div>
<script>      // 2. This code loads the IFrame Player API code asynchronously.
      var tag = document.createElement('script');
      tag.src = "http://www.youtube.com/player_api";
      var firstScriptTag = document.getElementsByTagName('script')[0];
      firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

      // 3. This function creates an <iframe> (and YouTube player)
      //    after the API code downloads.
      var player;
      function onYouTubePlayerAPIReady() {
        player = new YT.Player('player', {
          playerVars: { 'autoplay': 1, 'controls': 1,'autohide':1,'wmode':'opaque' },
          videoId: '[B][COLOR="#FF0000"]ID DEL VIDEO[/COLOR][/B]',
          events: {
            'onReady': onPlayerReady}
        });
      }

      // 4. The API will call this function when the video player is ready.
      function onPlayerReady(event) {
        event.target.mute();
      }
</script>

Eso metelo en un notepad, guardalo en formato html y subelo a tu servidor.

Luego creas un iframe llamando a ese enlace y el video se reproducirá en silencio desde el iframe.
 
con iframe lo dudo bastante, además esa web nisiquier tiene la opción de poner un video embebido.

kj
 
Atrás
Arriba