Created
August 19, 2014 14:18
-
-
Save tyoshikawa1106/fcc0395e822ce13c0060 to your computer and use it in GitHub Desktop.
Gist:PrettyEmbed.jsをつかったYouTube動画の埋め込み
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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