WP Shortcode Embed Video

WordPress Custom Shortcode Embed Video Setting Up the Plugin

Adding the Shortcode Function:

function wp_Jolims_responsive_video_shortcode( $atts ) {
extract( shortcode_atts( array (
'link' => ''
), $atts ) );
return '
<video width="100%" controls>
   <source src="' . $link . '" type="video/mp4">
   Your browser does not support HTML video.
</video>
';
}
add_shortcode ('jvideo', 'wp_Jolims_responsive_video_shortcode' );

Using the Shortcode:

[jvideo link="your_video_file.mp4"]