0
<?php
$args = array(
'post_type' => 'attachment',
'numberposts' => -1,
'post_status' => null,
'post_parent' => null, // any parent
'post_mime_type' => 'video/mp4'
);
$attachments = get_posts($args);
if ($attachments) {
foreach ($attachments as $post) {
setup_postdata($post);
the_title();
// the_attachment_link($post->ID, false);
?>
<video width="320" height="240" controls>
<source src="<?php wp_get_attachment_link($post->ID, false); ?>" type="video/mp4">
</video>
<?php
the_excerpt();
}
}
?>
我已經在wordpress媒體上上傳了mp4視頻,但是我不能在html5標籤中播放我不知道我要去哪裏錯誤的任何幫助將不勝感激。WordPress上傳的視頻不能播放Html 5標籤?