• Hello,

    Goal: To change default Youtube player for JW PLayer in auto embed.

    The idea is to skip oEmbed process and just copy YT URL into JW embed script, which will be always the same.

    <script type='text/javascript'>
      var so = new SWFObject('player.swf','ply','470','320','9','#000000');
      so.addParam('allowfullscreen','true');
      so.addParam('allowscriptaccess','always');
      so.addParam('wmode','opaque');
      so.addVariable('file','MY_YOUTUBE_URL');
      so.write('mediaspace');
    </script>

    How to change wp-includes/class-oembed.php properly?

    Thank you for your knowledge!

  • The topic ‘oEmbed YT & JW Player’ is closed to new replies.