I'm developing a video oriented theme. I need to include native WordPress video player in my page template. This is what I'm doing:
$video url comes from a custom field. It outputs the video file url http://example.com/video.mp4
do_shortcode() outputs the standard [video] shortcode used in posts/pages.
$video = get_field( "video_file_url"); echo do_shortcode('[video src="'.$video.'"]');
This is what I'm getting: The control bar color is light (not dark as in the standard WP player) and there's not play button in the middle center of the video.
I want to achieve the standard dark colored WordPress video player with a play button in the middle.
I guess I need to load mediaelement.js in my theme footer.php. I'm developing the theme from scratch and haven't done anything about mediaelement. Could that be the reason I'm getting light colored video player?
How can I output standart video player in the template?
wp_head();
andwp_footer();
in your theme?