How to create video post format template in wordpress

Add theme support in functions.php 

add_theme_support( ‘post-formats’, array( ‘aside’, ‘gallery’, ‘link ‘, ‘image’, ‘quote’, ‘status’, ‘video’, ‘audio’, ‘chat’ ) );

Then add this code into template file:

if( has_post_format( ‘video’ ) && get_post_format() == ‘video’ ) {
$content = apply_filters(‘the_content’, get_post_field(‘post_content’, get_the_ID()));
$iframes = get_media_embedded_in_content( $content, ‘iframe’ );
echo $video_post_iframe = $iframes[0];
}