flv视频短代码
flv视频短代码(演示)
Only Teardrops– Emmelie de Forest
创建flv短代码
让你的wordpress博客也可以使用这样视频播放器, 首先打开主题中的functions.php文件。如不存在此文件,创建一个。
在文件末尾, ?>
之前添加如下代码
//FLV播放器 function FLV_video($atts, $content=null){ extract(shortcode_atts(array("w"=>'0',"h"=>'0',),$atts)); return '<p style="text-align: center;"><embed wmode="Transparent" pluginspage=http://www.macromedia.com/go/getflashplayer src=/wp-content/plugins/mediaplayer-viral/player.swf width="'.$w.'" height="'.$h.'" type=application/x-shockwave-flash flashvars="file='.$content.'&skin=/wp-content/plugins/mediaplayer-viral/skins/glow.zip&backcolor=111111&frontcolor=eeeeee&stretching=exercise&displayheight=300&autostart=false" quality="high" allowFullScreen="true" allowscriptaccess="always" ></embed></p>'; } add_shortcode('flv','FLV_video'); //FLV播放器
下载必要文件
http://pan.baidu.com/share/link?shareid=1979172764&uk=3590587843
播放器文件安装
将下载的文件解压,然后将mediaplayer-viral文件夹上传的wordpress博客的wp-content/plugins
目录下
播放器使用格式
在HTML编辑状态下使用如下格式(编写时请去除#)
[#flv w=600 h=400]flv地址[#/flv]
其中的w=600
和 h=400
分别代表了播放器的宽,和高
进阶设置
有的同学可能并不需要这都的功能.针对某种需求,作如下介绍
简单的的使用[#flv]flv地址[#/flv]
(使用时请去除#)格式,请使用代码
//FLV播放器(固定尺寸) function FLV_video($atts, $content=null){ return '<p style="text-align: center;"><embed wmode="Transparent" pluginspage=http://www.macromedia.com/go/getflashplayer src=/wp-content/plugins/mediaplayer-viral/player.swf width="600" height="480" type=application/x-shockwave-flash flashvars="file='.$content.'&skin=/wp-content/plugins/mediaplayer-viral/skins/glow.zip&backcolor=111111&frontcolor=eeeeee&stretching=exercise&displayheight=300&autostart=false" quality="high" allowFullScreen="true" allowscriptaccess="always" ></embed></p>'; } add_shortcode('flv','FLV_video'); //FLV播放器
如果,需要打开页面就能播放,请将代码中的autostart=false
改为autostart=true
关于播放器
播放器是JWplayer播放器,是5.10 free版本.然后文件中player-.swf
文件可以生产分享链接.可以将代码中的swf播放器改为此播放器,那么你的播放器就可以生成分享了.
移动设备二维码阅读

┃文章档案信息: ┃本站文章除注明转载外,均为本站原创或编译
┃欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果,共创美好博客家园.
┃声明: 本文采用 BY-NC-SA ( 署名,非商业性使用,相同方式共享 )协议进行授权
┃转载请注明:转载来源自: 互联网新鲜事
┃本文标题: flv视频短代码
┃本文网址: http://www.vgg.me/internet/flv-video-short-code/

【上篇】:印度电影【为爱毁灭】中文字幕版
【下篇】:flvhd高清视频短代码
Pingback: 有封面的播放器短代码 – 互联网新鲜事
Pingback: music短代码 – 互联网新鲜事
先收藏了,完了研究下
来访问一下
如果有.mov 播放代码就好了
众里寻她千百度,暮然回首她却在灯火阑珊处.