Skip to content

Instantly share code, notes, and snippets.

@3Easy
Last active December 16, 2015 10:19
Show Gist options
  • Save 3Easy/5419229 to your computer and use it in GitHub Desktop.
Save 3Easy/5419229 to your computer and use it in GitHub Desktop.
ExpressionEngine Video Embed
{exp:channel:entries channel="video" limit="1"}
<h2>{title}</h2>
{video_embed}
{if video_embed_type == "vimeo"}
<iframe src="http://player.vimeo.com/video/{video_embed_key}?badge=0" width="600" height="400" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
{/if}
{if video_embed_type == "youtube"}
<iframe width="600" height="400" src="http://www.youtube.com/embed/{video_embed_key}" frameborder="0" allowfullscreen></iframe>
{/if}
{/video_embed}
{/exp:channel:entries}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment