Home » 网络平台

第一个WordPress插件 Fallen Media Filter

Submitted by fallen on Saturday, 13 August 2005107 Comments

发现ActiveX控件在网页中嵌入方式的统一形式后,就有写一个统一的多媒体插件的想法,晚上参考Flashifier的解析格式,写了个能在Blog里插入大部分常见格式的电影的插件,自己装上试了一下,本来只是自己写着玩,方便我平时在Blog里插入电影,后来觉得效果不错,就写的规范一点,发布出来。
这个插件只是单纯地标识解析,没有任何数据库操作,不修改任何文件,要卸载,只要解除它就行了,请放心用啦!
已经放到http://www.wp-plugins.net,点这里访问

名字 Name:

  • Fallen Media Filter
  • 现行版本 Version:

  • V0.14 2005-08-30 13:51
    修正了不能在firefox下禁止自动播放的bug,只是NO AutoPlay的改动,谢谢binaryechoes!
    fix the no-autoplay in firefox,Thank to binaryechoes!
    Download the V0.14 NO AutoPlay Version
  • 用途描述 Description:

  • 这个插件能用下面指出的格式在Blog的文章里插入大部分常见格式的多媒体,直接将“博客”变成“播客”。
  • Create ActiveX Media code by enclosing the info in the following way , help you insert Media quickly!Referrence Flashifier.
  • CODE:
    1. [ACT]http://where/is/your/movie/***.***(file URL),width(NUM),heightNUM)[/ACT]
    2.  

    Example

    CODE:
    1. [ACT]http://eiart.net/blog/wp-content/media/bassbang.wmv,320,240[/ACT]
    2.  

    支持格式 Support:

  • avi
  • asf
  • swf
  • flv(通过swf的flv播放器FlvPlayer间接支持,已经整合 Base on FlvPlayer,Already inside)
  • mov
  • rm(目前只有声音,没有图像,下一版本再解决吧!Only sound ,next time will kill this bug! 现在完美支持了 It's ok now! )
  • wmv
  • mp3
  • mp4
  • mpg


  • 浏览者能正常观看的条件 Requirement for viewers:
    因为是插入ActiveX 控件,所以需要观看者本身有能播放这些东西的播放器,这个插件所做的只是把媒体插入到网页里
    Because this is an insert ActiveX, it requires viewers already have a player .

  • flashplayer7 or newer version,这个世界上92%的个人上网电脑上都有装。
  • Windows media player 9 or newer version Download Windows media player 10 here 一般装了xp以上操作系统的都有了
  • If you want to see ".mov",you need Quicktime 要看mov格式的需要Quicktime
  • This is an optional parameters,but it can play almost all kinds of media! 这项是可选的,但我强烈推荐,My MPC-暴风影音,它能播放几乎所有格式的电影。 Download My MPC Chinese/Engliah
  • 安装 Install:

  • 这个非常简单!只要下载这个压缩包,将它解压到“WordPress的安装目录/wp-content/plugins/”,然后到后台的“插件plugins”里激活“Fallen Media Filter”。好!到这里你就可以在文章里用下面的格式来插入影片了!
  • Just download this zip ,unzip it into your plugins folder and activate it! Use the format like this in your post.
  • CODE:
    1. [ACT]http://where/is/your/movie/***.***(file URL),width(NUM),heightNUM)[/ACT]
    2.  

    Example,you can copy these code to your post, and have a try! 你可以把下面的代码拷贝到你的文章中,发表一下就可以看到效果了!

    CODE:
    1. [ACT]http://eiart.net/blog/wp-content/media/bassbang.wmv,320,240[/ACT]
    2.  

    接下来是可选的 Option:

  • 如果你想播放flv文件的话,解压后你会得到一个flvplayer.swf的文件,那就是播放器,把它放到你网站下的某个目录下,然后用下面的格式调用。If you want to play flv movie ,unzip the file ,you will get use the " flvplayer.swf" ,put it to anywhere of your sit,and use it by the code below:
  • CODE:
    1. [ACT]http://where/is/the/flvplayer/flvplayer.swf?file=http://where/is/your/flvmov/***.flv,width,height[/ACT]
    2.  

    其中,如果要显示播放器控制条(有播放,暂停,音量)的话,width要比原电影宽大10,height要比原电影高大50,如果不想显示,按原大小就可以了!
    Example
    下面是一个直接可以试的例子,直接引到我的站上,原电影尺寸:320*240 我的flvplayer.swf就是和flv文件放在一起的,调用起来就方便。

    CODE:
    1. [ACT]http://eiart.net/blog/wp-content/media/flvplayer.swf?file=Darkly.flv,330,290[/ACT]
    2.  

    把这段拷到你的文章,发布一下,就可以看了!

  • 如果你想在后台“写作”里添加“Media”的快捷标签,请按以下步骤。
    If you want to add the "Media" to quicktag,do the following:
    1,进入“你的wordpress安装目录/wp-admin/”,找到quicktags.js,用你喜欢的文本编辑器打开。
    更新:2.x版的WP的quicktag.js在:wordpress\wp-includes\js
    Enter the "wordpress/wp-admin/" find "quicktags.js".
    Updata: new "quicktag.js" at "wordpress\wp-includes\js"
    2,在末尾或中间添加以下代码,并根据你的情况修改:你惯用的放媒体的http://where/is/your/media的路径,400,300可以改成你惯用的width,height的具体值。以后只要在文章中写出电影文件名(包括后缀.mov .wmv....),定义起来,按“Media”就可以了。
    Add these codes in the end of "quicktags.js", you can modify the url"http://where/is/your/media" , the width"400" and the height"300".
  • JavaScript:
    1. edButtons[edButtons.length] =
    2.  new edButton('ed_media',
    3. 'media',
    4. '[ACT]http://where/is/your/media/',
    5. ',400,300[/ACT]'
    6. )

  • 如果如果你想在后台“写作”里添加 FLV 的快捷标签,请按以下步骤。
    If you want to add the "FLV" to quicktag,do the following:
    1,进入“你的WordPress安装目录/wp-admin/”,找到quicktags.js,用你喜欢的文本编辑器打开。
    更新:2.x版的WP的quicktag.js在:wordpress\wp-includes\js
    Enter the "wordpress//wp-admin/" find "quicktags.js".
    Updata: new "quicktag.js" at "wordpress\wp-includes\js"
    2,在末尾或中间添加以下代码,并根据你的情况修改:你flv播放器的路径http://where/is/the/flvplayer/,400,300可以改成你惯用的width,height的具体值。如果你把播放器和flv文件放在同一个目录的话,以后只要在文章中写出flv电影文件名(包括后缀.flv),定义起来,按“FLV”就可以了。如果不同目录,就要输入flv文件的绝对路径了。
    Add these codes in the end of "quicktags.js", you can modify the url"http://where/is/your/media" , the width"400" and the height"300".
  • JavaScript:
    1. edButtons[edButtons.length] =
    2.  new edButton('ed_flv',
    3. 'flv',
    4. '[ACT]http://where/is/the/flvplayer/flvplayer.swf?file=',
    5. ',400,300[/ACT]'
    6. );

    版权 License:

  • GPL
  • 下载 Download:

  • V0.14 AutoPlay zip
  • V0.14 AutoPlay rar
  • V0.14 No AutoPlay zip
  • V0.14 No AutoPlay rar
  • 疑问 Question:

  • Your English sucks
  • Technically, this is not a question. But yes, my english sucks, I'm not a native english speaker. I'm trying to do my best, though.

  • 有什么疑问请在本文留言。Leave your question in comment.
  • 历史 History:

  • V0.13 NO AutoPlay 2005-08-19 14:20 媒体文件不会自动播放版本,应david的要求改的,也是我一直在想的隐患,和自动播放版本并行存在,想在一个页面只放一个视频,并自动播放的就用本来的V0.13 ,想在一个页面放多个视频的,就用NO autoplay 版,不提供自动播放的控制参数,因为多了一个参数,升级太不平滑,会给以前的用户或不需要这个功能的用户带来困扰。Download the V0.13 NO AutoPlay Version
  • V0.13 2005-08-19 0:20 升级方法没什么特别的,和以前一样,解除,覆盖旧的,激活新的
    • 可以播放rm文件 .rm is ok now!
    • 所有视频自动播放 AUTOSTART = "true"
  • V0.12 2005-08-17 14:35
    • 修正了无法通过XHTML检验的问题,由于我粗心,给大家照成的麻烦很抱歉!谢谢lemonhall!请从新下载,先在后台解除原来V0.11,然后覆盖掉原来的文件,再激活即可!给大家照成的麻烦实在抱歉!
    • 以前说还没支持mp3,其实本来就可以放mp3,我一时傻掉了,非用flash来放,今天才想起来,下面是一个直接可以试的例子,直接引到我的站上的mp3。
    HTML:
    1. [ACT]http://eiart.net/blog/wp-content/media/girl.mp3,280,40[/ACT]
    2.  

    把这段拷到你的文章,发布一下,缓冲一下,自动会开始放。

  • V0.11 2005-08-17 8:49


  • 相关文章

      抄袭了一款flash的条形码时钟配合Fallen I/O Server的远程监控系统:Fallen Eyes(测试结束)网络体温调色盘:Temperature Sensor + PHP + AJAX + TwitterFallen I/O Server 公网上线测试(06.13更新压力测试截图)用 PDA+SD摄像头+WIFI 来做个无线摄像头

    107 Responses to “第一个WordPress插件 Fallen Media Filter”

    Pages: « 1 2 3 4 5 [6] Show All

    1. 88
      Babarum Says:

      fallen on December 16, 2006 at 1:58 pm said:

      Babarum:
      Hi! I already check your site, and I find there is no a file at “http://babarum.hu/movie/happynewyear.wmv”, so my plugin can’t work.

      Hello!

      Thank you for answer. I checked if I misstyped something, but the movie is right there: http://babarum.hu/movie/HappyNewYear.wmv
      In the post I wrote:
      [ACT]http://babarum.hu/movie/HappyNewYear.wmv,400,350[/ACT]
      Unfortunatelly it doesnt work.
      Did I missed something?

      Thanks

      Babarum

    2. 89
      fallen Says:

      Babarum:
      Your URL is wrong, you can try:
      “http://babarum.hu/movie/HappyNewYear.wmv,400,350″

    3. 90
      Babarum Says:

      fallen on December 19, 2006 at 7:21 pm said:

      Babarum:
      Your URL is wrong, you can try:
      “http://babarum.hu/movie/HappyNewYear.wmv,400,350″

      I checked again if I misstyped something, but the movie is right there: “http://babarum.hu/movie/HappyNewYear.wmv” (”http://” disappeared in the comment)
      In the post I wrote:
      “[ACT]http://babarum.hu/movie/HappyNewYear.wmv,400,350[/ACT]”
      (”http://” disappear here)
      I tried with another movie (avi) too, without succes.
      What is the problem?

      Thanks

      Babarum

    4. 91
      fallen Says:

      Babarum:
      sorry, I just find that ”http://” disappeared in the comment. If you url is right, I ready don’t know what’s wrong. Many user can make it work , may be some other plugins couse this.

    5. 92
      fallen Says:

      takeit1z:
      链接加好了,看来你也是厦大的 :D

    6. 93
      davinci Says:

      你的插件很好用 先谢谢你一下 但请问一下 可不可以将视频的长宽自适应啊 即自动调用视频的长宽值 而不用每次都要自己手动输入长宽值?

    7. 94
      fallen Says:

      davinci:
      谢谢你的建议,你说的自适应是指自适应BLOG的宽度吗?或者是自适应视频原始宽度?BLOG的宽度是可以取得的,但我现在还不知道怎样用脚本取得视频的原始尺寸(也可能真的没办法取得),所以也没办法按比例放缩视频。但如果你总是用同一规格的视频,如400*300,那在按钮按出来的代码里就是默认400*300的,也就是说你把它改成你最常用的比例就不用每次输了。

    8. 95
      99fashion Says:

      不错哦

    9. 96
      hanyee Says:

      No auto play 在FF下还是会自动播放

      这个该怎么办啊

      ~??

    10. 97
      fallen Says:

      hanyee :
      你好,不好意思,这两天空间商在换IP,不能及时回复。
      这个问题已经在V0.14解决了呀,我测试过,也没有人在反映相关问题。 不知道和你的FF有没有关系?

    11. 98
      bssn Says:

      你好,你说的在wp-admin 目录下的 quicktag.js 貌似2.x后没有了? 没有找到,方便给个详细说明吗?谢谢

    12. 99
      fallen Says:

      bssn:
      新版的WP的quicktag.js在:wordpress\wp-includes\js,抱歉,忘了及时更新。

    13. 100
      RobinQu Says:

      请问如何让FLV文件重复播放?

    14. 101
      fallen Says:

      RobinQu:
      抱歉,这里提供的player没有,没有留这个接口,但现在的flv player很多,肯定有能实现重复播放的,你可以用那个swf替换掉本来的。

    15. 102
      Says:

      我用的是yo2的,怎么使用你的插件啊?联系我的邮箱cheng_nuan@qq.com谢谢啦!!!

    16. 103
      fallen Says:

      暖:
      这个yo2在我这里很慢,一直“504 Gateway Time-out”。连注册一下都不容易,不知道它有没有开发插件系统,我没有用过这个社区,你最好问问那里的其他用户,如果有开发插件系统,你完全可以按我文中讲的安装,如果没有,恐怕也没办法。

    17. 104
      WordPress Plugins Database » Plugin Details » Fallen Media Filter Says:

      [...] Visit [...]

    18. 105
      dirk Says:

      thank you!-

    19. 106
      Hillari Says:

      Very nice work, admin :) Good luck!

    20. 107
      hemorrhoids Says:

      Great, thanks!

    Pages: « 1 2 3 4 5 [6] Show All

    Leave a Reply