Show examples as:

The SesameVault API « Back to Developer Page

Using the API, you can generate embed codes for your videos. To do so, call:

http://www.sesamevault.com/video/universal_player_embed/2981.xml

Which should result in something along the lines of:

  <results>
    <embed_code>
      <script id="SVSCRIPT-2981-0727713213473998" src="http://www.sesamevault.com/player.js?v=2981&sid=0727713213473998&_sig=1.0%3Abob%2C855461bbdea09972fa39a63f104060366e872615%3A1dfd9f5e078d86f839199f663fe6d1e3"></script><noscript><a href="http://www.sesamevault.com/no_player?v=2981&_sig=1.0%3Atest%2C855461bbdea09972fa39a63f104060366e872615%3Af38556a246378575a81739472742dc09"><img src="http://www.sesamevault.com/video/2981/thumbnail/file?width=110&_sig=1.0%3Atest%2C855461bbdea09972fa39a63f104060366e872615%3A6a6b6078ebee330276c5ce69c74fb7fe" />play</a></noscript>
    </embed_code>
  </results>

This embed results in a Universal Player with default values for width, height, autoplay, etc. You can explicitly set these values by passing them as parameters to the API call:

Note that the width and height are optional. If they are not set, the player's width and height will be set to that of the video profile chosen.