首页 技术 正文
技术 2022年11月21日
0 收藏 989 点赞 3,446 浏览 1347 个字

一:百度编辑器插入视频后,自动生成一段代码:

<video class="edui-upload-video  vjs-default-skin    video-js" controls="" preload="none" width="420" height="280" src="/userfiles/ueditor/video/20141013/1413188008890052726.mp4" data-setup="{}">  <source src="/userfiles/ueditor/video/20141013/1413188008890052726.mp4" type="video/mp4"/>  </video>   

二:在前台播放的时候,需要引入两个js(火狐或谷歌支持HTML标签的)

<link type="text/css" rel="stylesheet" href="/ueditor/third-party/video-js/video-js.css" rel="external nofollow" /><script language="javascript" type="text/javascript" src="/ueditor/third-party/video-js/video.js"></script>

理论上来说,只需要引入: /ueditor/ueditor.parse.js ,判断遇到video标签的时候,调用其css和js,但目前有bug,引入不好使,故直接引入

三:html5的video支持的浏览器

Ueditor1.4.3上传视频IE下无法播放的问题

Ueditor1.4.3上传视频IE下无法播放的问题

四:解决让IE支持video标签

<!-- 在页面的head部分加入如下脚本,非支持 audio/video标签浏览器使用 -->
<script src="http://api.html5media.info/1.1.4/html5media.min.js"></script><h4>视频媒体标签</h4>
<video src="http://www.html51.com/demo/html5-video/demo.mp4" width="592" height="256" autoplay controls preload autobuffer></video><br><br><h4>音频媒体标签</h4>
<audio src="http://www.shop2download.com/samples/21/73/0000000007242173_MP3_128kbps_44.1kHz_stereo_CBR.mp3" autoplay controls preload autobuffer></audio><br><br><div>PS:最简单的方法,就只要备备好 mp4与 ogv二种影音格式就可以了<br>
查考:<a href="http://www.iefans.net/video-kaifangshi-biaoqian-butong-geshi" rel="external nofollow" >HTML5 Video开放式标签根据不同浏览器播放不同格式</a></div>

 主要引入js:

<script src="http://api.html5media.info/1.1.4/html5media.min.js"></script>

ueditor中可以插入flv ,mp4 格式的文件 即可在IE8上播放

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,964
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,486
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,331
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,114
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,747
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,781