FCKeditor的Flv插件

转自:http://blog.csdn.net/qingflyer/archive/2009/03/29/4033965.aspx

这是一个国外牛人开发的强大FLV视频播放器插件,可以自定义播放器界面颜色,可设置播放器默认图片,支持单文件和XML文档列表调用。

1、先下载FLV的插件,下载地址:http://sourceforge.net/tracker/download.php?group_id=75348&atid=737639&file_id=278897&aid=1856051
本地下载地址:点击下载

2、使用方法:

Unzip the files into the plugins folder.
Configure the editor to see the plugin. In your editor configuration file, add the line below:

FCKConfig.Plugins.Add( 'flvPlayer','en') ;


Add the toolbar button to your preferred menu.

FCKConfig.ToolbarSets[ "Default"] = [
['Source','DocProps','-','Save','NewPage','Preview','-','Templates','flvPlayer'],

3、修改上传浏览不支持FLV格式BUG

    vi flvPlayer/flvPlayer.js

Change:
OpenServerBrowser(
'flv',
oEditor.FCKConfig.MediaBrowserURL,
oEditor.FCKConfig.MediaBrowserWindowWidth,
oEditor.FCKConfig.MediaBrowserWindowHeight ) ;

by:

OpenServerBrowser(
'flv',
oEditor.FCKConfig.FlashBrowserURL,
oEditor.FCKConfig.FlashBrowserWindowWidth,
oEditor.FCKConfig.FlashBrowserWindowHeight ) ;

Now, IMCE will be opened, but when you select a file, IMCE can't send back
the path.
To solve it:

vi flvPlayer/flvPlayer.html
Change all ocurrencies of "txtURL" by "txtUrl"

vi flvPlayer/flvPlayer.js
Change all ocurrencies of "txtURL" by "txtUrl"

详细的资料:http://sourceforge.net/tracker/index.php?func=detail&aid=1856051&group_id=75348&atid=737639

posted on 2009-08-12 11:25  王培  阅读(1289)  评论(1编辑  收藏  举报

导航