Skip to content

Instantly share code, notes, and snippets.

@vgrem
Last active December 23, 2015 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vgrem/6704320 to your computer and use it in GitHub Desktop.
Save vgrem/6704320 to your computer and use it in GitHub Desktop.
YouTube Player initialization via IFrame API
<!-- Video player tag is inserted into SharePoint Rich Text Editor from RTE Dialog -->
<!-- When the List Form or View page is rendered, this tag is replaced with <iframe> (and video player) via YouTube IFrame API -->
<div id="ytplayer">
<span style="display: none;">Z6-iUNfJsJw;320;215</span> <!-- player info in the following format VideoId;Width:Height -->
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment