一、FCKeditor.flv播放插件--movie
具体用法如下:
1. 下载FCKeditor .flv播放插件movie
【点击下载】
解压到FCKeditor/editor/plugins
2. 打开 FCKeditor/fckconfig.js
A. 在FCKeditor引入插件设置的位置下方加入下面代码:
FCKConfig.Plugins.Add( 'movie', 'en,zh,zh-cn' ) ;
B. 在FCKeditor功能菜单设置中加入'movie',例如:
FCKConfig.ToolbarSets[ "Default"] = [
['Image','Flash','Movie','Table','Rule','Smiley','SpecialChar','PageBreak']
经过简单的设置后,就能在FCKeditor中插入.flv格式的视频了。
二、由于movie播放插件播放视频时功能简单,于是采用与vcastr3整合。
三、Vcastr 3.0 – flash video(flv) player (开源 Open Source)
相关介绍参看:http://www.ruochigroup.com/main/2008/03/19/vcastr-30/
四、在fckeditor\editor\plugins\movie\ 中修改movieplayer.js
var flashPlayer = "js/vcastr3.swf"; //设置播放器路径
改为vcastr3.swf路径
// Flash video (FLV)
s += '<OBJECT id="movie' + rnd + '" ';
s += ' type="application/x-shockwave-flash" ';
s += ' data="'+ flashPlayer +'" ';
s += ' width="'+this.width+'" height="'+this.height+'" >';
s += ' <PARAM name="movie" value="'+ flashPlayer +'" />';
s += ' <param name="allowFullScreen" value="true" />';
s += ' <PARAM name="FlashVars" value="xml=<vcastr><channel><item><source>' + this.url + '</source><duration></duration><title></title></item></channel><config><bufferTime>4</bufferTime><contralPanelAlpha>0.75</contralPanelAlpha><controlPanelBgColor>0x0262cb</controlPanelBgColor><controlPanelBtnColor>0xffffff</controlPanelBtnColor><contralPanelBtnGlowColro>0xffff00</contralPanelBtnGlowColro><controlPanelMode>float</controlPanelMode><defautVolume>0.5</defautVolume><isAutoPlay>false</isAutoPlay><isLoadBegin>true</isLoadBegin><isShowAbout>true</isShowAbout><scaleMode>showAll</scaleMode><isRepeat>false</isRepeat></config><plugIns></plugIns></vcastr>" />';
//s += ' <PARAM name="FlashVars" value="flv='+this.url+'&showplayer=always&width='+this.width+'&height='+this.height+'&showiconplay=true&autoplay='+this.autoplay+'" />';
s += '</OBJECT>';
另外修改为如上代码,依据Vcastr 3.0里的API进行修改。
五、完成后效果如图
- 大小: 50.4 KB
- 大小: 246.4 KB
分享到:
相关推荐
fckeditor编辑器上传.flv视频插件,很给力
简单易操作ASP.NET mvc使用FCKeditor.zip在线编辑器示例
FCKeditor.java-2.3.2 + FCKeditor_2.5.1 + 中文API 黄金搭档! 最近做项目需要jsp里使用编辑器,在网上搜资料 几乎前篇一律, 版本太多,一晚上没睡 调试通了!有兴趣的可以研究下!
FCKeditor.Net_2.6.3.zip ,FCKeditor.dll
fckeditor.js文件中文注释 更新可以查看文章: http://blog.csdn.net/nileader4dev/archive/2010/12/12/6070727.aspx
jsp开发环境下的原版FCKeditor内有(jar和原版文件)
FCKeditor & FCKeditor.java & fck-faces
在项目中整合FCKeditor.doc
在项目中整合FCKeditor.rar
Fckeditor 2.6.3/2.6.4的JAR包及使用 说明文档 内容其全 希望能帮到正在使用或将要使用的同学们
在Java Web应用中使用FCKeditor
fckeditor主要文件,要了可以联系我哈。
项目中遇到播放视频的要求,由于我采用的是fckeditor编辑器,于是想到用flvplayer视频插件,虽然还有其他插件但现在网上流行用flv格式作为视频的标准,网上找到很多这个插件,但基本都是出现一个视频错位的问题,原...
功能强大的fckeditorFLV视频播放器插件
FCKeditor(jsp版本)目录文件,FCKeditor.jar包,增加FCKeditor添加FLV视频功能和FCKeditor上传文件自动更名功能 1.修正了上传中文文件乱码的问题,上传之后会重命名文件 2.修正了不能上传FLV视频的问题
FCKeditor.Java 源码下载
1.下载附件 ,解压到 FCKeditor 的 FCKeditor/editor/plugins/magicplayer 目录。 2.编辑 FCKeditor/fckconfig.js 查找 FCKConfig.PluginsPath = FCKConfig.BasePath 'plugins/' ; 在后面加上 FCKConfig....
前端界面文本编辑器模板,全都是单个模板,开源可编辑
fckeditor.rar可以编辑所要上传的文本