Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

alanchrishughes on "Does Wordpress Block HTML 5 Video?"

$
0
0

I've been trying to make this extremely basic page template for videos

<?php get_header(); ?>

<video width="1280" height="720" controls>

<source src="<?php echo get_post_meta($post->ID, 'webm', true); ?>" type="video/webm">

<source src="<?php echo get_post_meta($post->ID, 'mp4', true); ?>" type="video/mp4">

</video> 

<?php get_footer(); ?>

But it wasn't working. I thought maybe it was a problem in the way I was calling for the custom field entry for the videos urls, but even when you directly code the url's, you get an error saying "No video with supported MIME type found."

The code works fine a basic html page, so I assume it must be a problem with Wordpress? Anybody know how to fix it?


Viewing all articles
Browse latest Browse all 8245

Trending Articles