Skip to content

Instantly share code, notes, and snippets.

@bavington
Last active August 29, 2015 14:03
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 bavington/8a79d58d1b998a604188 to your computer and use it in GitHub Desktop.
Save bavington/8a79d58d1b998a604188 to your computer and use it in GitHub Desktop.
Schema.org Video Markup for JW Player
<div id="myElement" itemprop="video" itemscope itemtype="http://schema.org/VideoObject">
<h2 itemprop="name">Video Name or Title</h2>
<meta itemprop="duration" content="00:02:33" />
<meta itemprop="thumbnailUrl" content="http://example.com/uploads/myPoster.jpg" />
<meta itemprop="contentUrl" content="http://example.com/uploads/myVideo.mp4" />
<meta itemprop="uploadDate" content="2014-01-03T08:00:00+08:00" />
<span itemprop="description">The description of your video content goes here.</span>
<script>
jwplayer("myElement").setup({
file: "http://example.com/uploads/myVideo.mp4",
image: "http://example.com/uploads/myPoster.jpg",
width: 640,
height: 360
});
</script>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment