{% if article.videoPoster is empty %}
{% set video_poster = '/build/images/poster_default.png' %}
{% else %}
{% set video_poster = '/uploads/images/' ~ article.videoPoster.src %}
{% endif %}
{% set videoMetaTagArray = {} %}
{% for metaTag in article.video.mediaMetaTags %}
{% set key = metaTag.getKey() %}
{% set videoMetaTagArray = videoMetaTagArray|merge({(key): metaTag}) %}
{% endfor %}
<div class="videoo">
<div class="vid_thumbainl">
<a href="{{ path('post_show', {'slug' : article.slug}) }}" title="{{ article.video.title }}">
<img src="{{ video_poster }}" alt="{{ article.video.title }}">
{% if videoMetaTagArray.duration is defined %}
{% set minutes = videoMetaTagArray.duration.value // 60 %}
{% set seconds = videoMetaTagArray.duration.value % 60 %}
<span class="vid-time">{{ minutes }}:{{ seconds }}</span>
{% endif %}
</a>
</div>
<!--vid_thumbnail end-->
<div class="video_info">
<h3>
<a href="{{ path('post_show', {'slug' : article.slug}) }}" title="">{{ article.video.title }}</a>
</h3>
<h4>
<!--<a href="Single_Channel_Home.html" title="">-->
{{ article.category.title }}
<!--</a>-->
</h4>
<span>
<small class="posted_dt">{{ article.createdAt|date(config.dateFormat) }}</small>
</span>
</div>
</div>