Skip to content

Instantly share code, notes, and snippets.

@tyoshikawa1106
Created August 19, 2014 14:18
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 tyoshikawa1106/fcc0395e822ce13c0060 to your computer and use it in GitHub Desktop.
Save tyoshikawa1106/fcc0395e822ce13c0060 to your computer and use it in GitHub Desktop.
Gist:PrettyEmbed.jsをつかったYouTube動画の埋め込み
<apex:page showHeader="true" sidebar="false">
<apex:includeScript value="https://code.jquery.com/jquery-2.1.1.min.js" />
<apex:includeScript value="{!$Resource.PrettyEmbedJs}" />
<div id="vf-page">
<apex:form id="form">
<div id="my-video-display" ></div>
</apex:form>
</div>
<script type="text/javascript">
$('#my-video-display').prettyEmbed({
videoID: 'jv25DodsoFo',
previewSize: 'hd', // use either this option...
customPreviewImage: '', // ...or this option
// Embed controls
showInfo: false,
showControls: true,
loop: false,
colorScheme: 'dark',
showRelated: false,
useFitVids: true
});
</script>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment