Last active
December 16, 2015 10:19
-
-
Save 3Easy/5419229 to your computer and use it in GitHub Desktop.
ExpressionEngine Video Embed
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
{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