<?php 
$post_format_icon = 'arrow_triangle-right_alt2';
$_video_type = get_post_meta(get_the_ID(), "edgtf_video_type_meta", true);
?>
<?php if($_video_type == "youtube") { ?>
	<iframe  src="http://www.youtube.com/embed/<?php echo esc_attr(get_post_meta(get_the_ID(), "edgtf_post_video_id_meta", true));  ?>?wmode=transparent&amp;showinfo=0" wmode="Opaque" width="500" height="281" allowfullscreen></iframe>
<?php } elseif ($_video_type == "vimeo"){ ?>
	<iframe src="http://player.vimeo.com/video/<?php echo esc_attr(get_post_meta(get_the_ID(), "edgtf_post_video_id_meta", true));  ?>?title=0&amp;byline=0&amp;portrait=0" width="500" height="281" allowFullScreen></iframe>
<?php } elseif ($_video_type == "self"){ ?>
	<div class="edgtf-self-hosted-video-holder">
		<div class="edgtf-mobile-video-image" style="background-image: url(<?php echo esc_url($meta_temp_image = get_post_meta(get_the_ID(), "edgtf_post_video_image_meta", true));  ?>);"></div>
		<div class="edgtf-video-wrap">
			<video class="edgtf-self-hosted-video" poster="<?php echo esc_url(get_post_meta(get_the_ID(), "video_format_image", true));  ?>" preload="auto">
				<?php if(($meta_temp = get_post_meta(get_the_ID(), "edgtf_post_video_webm_link_meta", true)) != "") { ?> <source type="video/webm" src="<?php echo esc_url($meta_temp);  ?>"> <?php } ?>
				<?php if(($meta_temp_mp4 = get_post_meta(get_the_ID(), "edgtf_post_video_mp4_link_meta", true)) != "") { ?> <source type="video/mp4" src="<?php echo esc_url($meta_temp_mp4);  ?>"> <?php } ?>
				<?php if(($meta_temp = get_post_meta(get_the_ID(), "edgtf_post_video_ogv_link_meta", true)) != "") { ?> <source type="video/ogg" src="<?php echo esc_url($meta_temp);  ?>"> <?php } ?>
				<object width="320" height="240" type="application/x-shockwave-flash" data="<?php echo esc_url(get_template_directory_uri().'/assets/js/flashmediaelement.swf'); ?>">
					<param name="movie" value="<?php echo esc_url(get_template_directory_uri().'/assets/js/flashmediaelement.swf'); ?>" />
					<param name="flashvars" value="controls=true&file=<?php echo esc_url($meta_temp_mp4);  ?>" />
					<img itemprop="image" src="<?php echo esc_url($meta_temp_image);  ?>" width="1920" height="800" title="No video playback capabilities" alt="<?php esc_html_e('video thumb','conall'); ?>" />
				</object>
			</video>
		</div>
	</div>
<?php } ?>
<?php if($_video_type == "youtube" || $_video_type === "vimeo" || $_video_type === "self") {
	$additional_class = '';
	if($_video_type === "vimeo") {
		$additional_class = 'edgtf-vimeo-video';
	}
	?>
	<div class="edgtf-post-format-icon <?php echo esc_attr($additional_class); ?>"><span class="<?php echo esc_attr($post_format_icon); ?>"></span></div>
<?php } ?>