aVideo - Allen’s Wordpress Video Plugin

  • September 9th, 2007

我修改的一个 , 主要因为之前随便搜了一下没有找到支持国内共享网站的播放, 所以照着 Wordpress Youtube Plugin 改了一个, 其实挺简单的, 依样画葫芦就是了. 把改好的放上来算是服务大众吧…

插件说明

名称:
说明: Allen’s Wordpress Video Plugin, 支持中文视频分享网站的 Flash 播放插件.
版本: 0.9
作者: Allen Hsu
网址: http://www.imallen.com/

下载地址

点击下载 aVideo v0.9

安装方法

将 avideo.php 上传至 wordpress 根目录下的 wp-content/plugins/ 目录, 然后在后台 Plugins 激活 aVideo 即可使用.

使用方法:

使用方法与 Wordpress Youtube Plugin 雷同.

注: 以下所加引号是为了防止转义, 使用时不需要也不能加引号.

YouTube:

["youtube" id]

其中 id 为播放页面地址

http://www.youtube.com/watch?v=fY4Epc2XSGc

中加粗斜体部分

土豆网:

["tudou" id]

其中 id 为播放页面地址

http://www.tudou.com/programs/view/Y2dE5FH-LwE/

中加粗斜体部分

QQ 视频:

["qqvideo" id]

其中 id 为播放页面地址

http://video.qq.com/videopl.htm?v=2HTaRoQGRNr

中加粗斜体部分

Mofile:

["mofile" id]

其中 id 为播放页面中论坛代码

http://tv.mofile.com/cn/xplayer.swf?v=A41L6TYX

中加粗斜体部分

UUme:

["uume" id]

其中 id 为播放页面地址

http://www.uume.com/play_zdLLLAqLedut

中加粗斜体部分

优酷:

["youku" id]

其中 id 为播放页面地址

http://v.youku.com/v_show/id_ce00XODI1ODQ3Ng==.html

中加粗斜体部分

注意: 带 = 号但是不带 00 以及 00 以前的字符

其他 Flash:

["flash" id]

其中 id 为 Flash 地址

专用播放器已都根据默认大小设置, 通用 Flash 播放器大小默认为 400 * 300.

有任何疑问或建议的话欢迎在此留言.

21 Responses to “aVideo - Allen’s Wordpress Video Plugin”

  1. Gravatar Icon grayhound Says:
  2. Gravatar Icon grayhound Says:

    ["flash" http://appleshow.cc/tuyastorage/10/11051.swf

    是这样吗? 可是不好使啊

  3. Gravatar Icon Allen Says:

    我的引号是为了防止我的示例被转换成 Flash 加的, 使用时要去掉引号

  4. Gravatar Icon grayhound Says:

    [code]]通用 Flash 播放器大小默认为 400 * 300[/code]
    那如何更改,使适应到Flash本身的大小呢?

  5. Gravatar Icon Allen Says:

    等我有时间更新一次, 改一下

  6. Gravatar Icon Dave Says:

    Allen,

    I am missing something here. I have placed aVideo into the plugins folder of WP and activated it on the admin panel so far so good.

    Then I go to youtube and copy the url of the video and paste in the link and all that shows on the WP posting in the link in regular type - no video.

    Here is an example of a test that I did with a very short cut off a cell phone.

    http://youtube.com/watch?v=oWGZr3b3KUA

    I wanted the video to show on the WP blog. What did I do wrong?

    Thanks,

    Dave

  7. Gravatar Icon Dave Says:

    Allen,

    I got it figured out.

    Dave

  8. Gravatar Icon Dan Says:

    不行啊, 一直是 “載入中, 請稍後!”
    到底出了什麼問題?

    [coolplayer width="400" height="300" autoplay="0" loop="0" charset="utf-8" download="1" mediatype="tudou "]
    http://www.tudou.com/programs/view/brEIrPK4c6s/
    [/coolplayer]

    您說的["tudou" id] 要放在哪兒啊

  9. Gravatar Icon Akay Says:

    非常感谢。

  10. Gravatar Icon 佳佑 Says:

    这个插件不错,已经在使用了,谢谢楼主分享。

  11. Gravatar Icon g.zhen.ning Says:

    好东西,用来处理youku这类视频的好帮手哦!

  12. Gravatar Icon michael Says:

9 Trackbacks/Pingbacks

  • aVideo - Wordpress视频插件 | 专注教育研究,教育技术,互联技术 | 老王’s Blog-从学到做的过程 (Pingback, September 22, 2007)
    [...] 使用方法与 Wordpress Youtube Plugin 雷同.详细请进… [...]
  • wordpress2.3插件之播放器插件,加入对ouou的支持 | Tomgo推荐 (Pingback, October 23, 2007)
    [...] 原来一直在用Coolcode的Coolplayer这个wordpress的播放器插件,但是发现他对youku和tudou网站都不支持了,好像是被他们放盗链了.搜索了下,找到了avideo这个插件,虽然在编辑时候在编辑面板没有加入按钮,但是使用也是非常简单的,而且他的代码非常简洁,只有一个文件.发现他对youku、tudou、uume、qqvideo、flash、youtude等支持不错(Allen修改版),唯独缺少了现在也非常热门的视频网站ouou,我看下了代码,觉得修改还是比较简单的,于是手动修改了下,加入ouou code如下: // ouou codedefine("ouou_WIDTH", 480); define("ouou_HEIGHT", 400); define("ouou_REGEXP", "//"); define("ouou_TARGET", "“);function ouou_plugin_callback($match) {  $output = ouou_TARGET;  $output = str_replace("###URL###", $match[1], $output);  return ($output); }function ouou_plugin($content) {  return (preg_replace_callback(ouou_REGEXP, 'ouou_plugin_callback', $content)); }add_filter('the_content', 'ouou_plugin'); add_filter('comment_text', 'ouou_plugin'); [...]
  • aVideo 插件的小改动 (Pingback, December 4, 2007)
    [...] aVideo 插件已经很方便, 但对于各种不同 Video Provider 无法完全支持, 本人增加了一项  〔video http://www.youtube.com/v/SEZU1kbfhu4&rel=1 width=425 height=355 〕 (注:使用时用小写的[])。对于所有 Embed 方式提供的 video 均可以使用,见 http://video.fbloger.com,  插件 aVideo.zip。 [...]
  • 渐行渐远 » wordpress用到的插件(不断更新) (Pingback, February 16, 2008)
    [...] 使用方法 http://www.imallen.com/blog/works/2007/09/avideo-allens-wordpress-video-plugin/ [...]
  • 维纳斯 » Blog Archive » wordpress插件集锦(不断添加中…) (Pingback, April 9, 2008)
    [...] avideo - 支持中文视频分享网站的 Flash 播放插件。 [...]
  • 支持国产视频网站的wordpress视频插件 | 阿牛看网事 (Pingback, May 8, 2008)
    [...] 插件说明 名称: aVideo 说明: Allen’s Wordpress Video Plugin, 支持主流中文视频分享网站的 Flash 视频播放插件. 版本: 0.9 作者: Allen Hsu 网址: http://www.imallen.com/ 插件: http://www.imallen.com/blog/works/2007/09/avideo-allens-wordpress-video-plugin/ [...]
  • 南阳SEO网络营销博客 » wordpress插件集锦,收藏留着用 (Pingback, May 22, 2008)
    [...] [...]
  • wordpress Plug-in Category collect | 王标 (Pingback, June 2, 2008)
    [...] avideo - 支持中文视频分享网站的 Flash 播放插件。 [...]
  • wordpress插件集锦(不断添加中…) | 马季的博客 (Pingback, June 20, 2008)
    [...] avideo - 支持中文视频分享网站的 Flash 播放插件。 [...]

Leave a Reply