博客文章上的HTML

博客文章上的HTML

本文介绍了博客文章上的HTML 5视频代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部

我想将视频添加到一些博客文章中.

I want to add video to some blog posts.

目前,我无法创建大多数帖子似乎都建议使用的资产库.

Currently I can't create an assets library which most posts seem to suggest.

我有以下代码:

<video width="320" height="240" controls>
  <source src="https://domain.com/personal/username/Blog/SiteAssets/VideoFile.mp4" type="video/mp4">
  Your browser does not support the video tag.
</video>

我也尝试过

<video width="320" height="240" controls>

我正在通过插入代码将代码添加到博客帖子正文中.

I am adding the code to a blog post body via Insert>Embed Code.

如果我在SharePoint外部创建一个非常基本的html页面并在各种浏览器中打开它,则它可以正常工作.

If I create a very basic html page outside of SharePoint and open it in a variety of browsers, it works.

最初,当我编辑代码段时,一切正常,即我看到控件或视频自动播放,但是将帖子另存为草稿或发布并批准后,我看不到视频控件或视频无法自动开始

Initially when I edit my snippet, everything works i.e.I see controls or the video plays automatically, but once I save the post as draft or publish and approve, I don't see the video controls or the video doesn't start automatically.

我想念什么吗?

谢谢

W

推荐答案


这篇关于博客文章上的HTML 5视频代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 17:30