HowTo: embed the playlist player in an external site

  • Overview

    This question was asked in the forums, "I would like to embed a playlist/player (from www.siteA.com) onto another site (www.totallyOtherSite.com). Is there any example code I can copy+paste to do this?"

    So here is that copy paste code.

    The concept is simple:
    1st, get a player all by itself with no surrounding formatting or other elements. The player should span 100% of the screen width.

    2nd, on the site where you want to embed the player, add an iframe with the url of the player created in step1.

    The URL for the standalone player is:
    your-site.com/playlist/standalone/(playlist id)

    So if the ID of the playlist your wanting to play is #1 the full url would be
    your-site.com/playlist/standalone/1

    The code to use that in an iframe is below:
    <iframe width="640" height="390" frameborder="0" src="http://your-site.com/playlist/standalone/1"></iframe>
  • changing the height and width parameters on the iframe will change the size of the player.

Share This

Tags