您当前位置: 首页 金融理财 英皇棋牌注册送20元

类型: 金融理财 版本: V6.1
大小: 1,882.4 时间: 2026-01-05





[WordPress插件怎样安装WordPress插件安装方法]
在wordpress上播放在线视频要怎么设置呢?有了这款Smartideo视频插件就简单多了,它可以帮助你快速在wordpress添加在线视频,支持手机、平板的HTML5播放,它支持优酷、搜狐视频、土豆、56、腾讯视频、新浪视频、酷6、华数、乐视等热门网站的视频。足球大小球
<?php
/*
PluginName:Smartideo
PluginURI:http://www.fengziliu.com/
Description:Smartideo是为WordPress添加对在线视频支持的一款插件(支持手机、平板等设备HTML5播放)。目前支持优酷、搜狐视频、土豆、56、腾讯视频、新浪视频、酷6、华数、乐视等网站。
Version:1.2
Author:FensLiu
AuthorURI:http://www.fengziliu.com/smartideo-for-wordpress.html
*/
define('SMARTIDEO_VERSION','1.0');
define('SMARTIDEO_URL',plugins_url('',__FILE__));
define('SMARTIDEO_PATH',dirname(__FILE__));
$smartideo=newsmartideo();
classsmartideo{
private$width='100%';
private$height='500';
private$mobile_width='100%';
private$mobile_height='250';
publicfunction__construct(){
if(is_admin()){
add_action('admin_menu',array($this,'admin_menu'));
}
$option=get_option('smartideo_option');
if(!empty($option)){
$option=json_decode($option,true);
}else{
$option=array();
}
extract($option);
if(!empty($width)){
$this->width=$width;
}
if(!empty($height)){
$this->height=$height;
}
if(!empty($mobile_width)){
$this->mobile_width=$mobile_width;
}
if(!empty($mobile_height)){
$this->mobile_height=$mobile_height;
}
wp_embed_register_handler('smartideo_tudou',
'#https?://(?:www.)?tudou.com/(?:programs/view|listplay/(?<list_id>[a-z0-9_=-]+))/(?<video_id>[a-z0-9_=-]+)#i',
array($this,'smartideo_embed_handler_tudou'));
wp_embed_register_handler('smartideo_56',
'#https?://(?:www.)?56.com/[a-z0-9]+/(?:play_album-aid-[0-9]+_vid-(?<video_id1>[a-z0-9_=-]+)|v_(?<video_id2>[a-z0-9_=-]+))#i',
array($this,'smartideo_embed_handler_56'));
wp_embed_register_handler('smartideo_youku',
'#https?://v.youku.com/v_show/id_(?<video_id>[a-z0-9_=-]+)#i',
array($this,'smartideo_embed_handler_youku'));
wp_embed_register_handler('smartideo_qq',
'#https?://v.qq.com/(?:cover/g/[a-z0-9_.]+?vid=(?<video_id1>[a-z0-9_=-]+)|(?:[a-z0-9/]+)/(?<video_id2>[a-z0-9_=-]+))#i',
array($this,'smartideo_embed_handler_qq'));
wp_embed_register_handler('smartideo_sohu',
'#https?://my.tv.sohu.com/us/(?:d+)/(?<video_id>d+)#i',
array($this,'smartideo_embed_handler_sohu'));
wp_embed_register_handler('smartideo_wasu',
'#https?://www.wasu.cn/play/show/id/(?<video_id>d+)#i',
array($this,'smartideo_embed_handler_wasu'));
wp_embed_register_handler('smartideo_yinyuetai',
'#https?://v.yinyuetai.com/video/(?<video_id>d+)#i',
array($this,'smartideo_embed_handler_yinyuetai'));
wp_embed_register_handler('smartideo_ku6',
'#https?://v.ku6.com/show/(?<video_id>[a-z0-9-_.]+).html#i',
array($this,'smartideo_embed_handler_ku6'));
wp_embed_register_handler('smartideo_letv',
'#https?://www.letv.com/ptv/vplay/(?<video_id>d+)#i',
array($this,'smartideo_embed_handler_letv'));
}
publicfunctionsmartideo_embed_handler_tudou($matches,$attr,$url,$rawattr){
if(wp_is_mobile()){
$embed=$this->get_iframe("http://www.tudou.com/programs/view/html5embed.action?type=0&code={$matches['video_id']}");
}else{
$embed=$this->get_embed("http://www.tudou.com/v/{$matches['video_id']}/&resourceId=0_05_05_99&bid=05/v.swf");
}
returnapply_filters('embed_tudou',$embed,$matches,$attr,$url,$rawattr);
}
publicfunctionsmartideo_embed_handler_56($matches,$attr,$url,$rawattr){
$matches['video_id']=$matches['video_id1']==''?$matches['video_id2']:$matches['video_id1'];
if(wp_is_mobile()){
$embed=$this->get_iframe("http://www.56.com/iframe/{$matches['video_id']}");
}else{
$embed=$this->get_embed("http://player.56.com/v_{$matches['video_id']}.swf");
}
returnapply_filters('embed_56',$embed,$matches,$attr,$url,$rawattr);
}
publicfunctionsmartideo_embed_handler_youku($matches,$attr,$url,$rawattr){
if(wp_is_mobile()){
$embed=$this->get_iframe("http://player.youku.com/embed/{$matches['video_id']}");
}else{
$embed=$this->get_embed("http://player.youku.com/player.php/sid/{$matches['video_id']}/v.swf");
}
returnapply_filters('embed_youku',$embed,$matches,$attr,$url,$rawattr);
}
publicfunctionsmartideo_embed_handler_qq($matches,$attr,$url,$rawattr){
$matches['video_id']=$matches['video_id1']==''?$matches['video_id2']:$matches['video_id1'];
if(wp_is_mobile()){
$embed=$this->get_iframe("http://v.qq.com/iframe/player.html?vid={$matches['video_id']}");
}else{
$embed=$this->get_embed("http://static.video.qq.com/TPout.swf?vid={$matches['video_id']}");
}
returnapply_filters('embed_qq',$embed,$matches,$attr,$url,$rawattr);
}
publicfunctionsmartideo_embed_handler_sohu($matches,$attr,$url,$rawattr){
if(wp_is_mobile()){
$embed=$this->get_iframe("http://tv.sohu.com/upload/static/share/share_play.html#{$matches['video_id']}_0_0_9001_0");
}else{
$embed=$this->get_embed("http://share.vrs.sohu.com/my/v.swf&topBar=1&id={$matches['video_id']}&autoplay=false&xuid=&from=page");
}
returnapply_filters('embed_sohu',$embed,$matches,$attr,$url,$rawattr);
}
publicfunctionsmartideo_embed_handler_wasu($matches,$attr,$url,$rawattr){
if(wp_is_mobile()){
$embed=$this->get_iframe("http://www.wasu.cn/Play/iframe/id/{$matches['video_id']}");
}else{
$embed=$this->get_embed("http://s.wasu.cn/portal/player/20141216/WsPlayer.swf?mode=3&vid={$matches['video_id']}&auto=0&ad=4228");
}
returnapply_filters('embed_wasu',$embed,$matches,$attr,$url,$rawattr);
}
publicfunctionsmartideo_embed_handler_yinyuetai($matches,$attr,$url,$rawattr){
$embed=$this->get_embed("http://player.yinyuetai.com/video/player/{$matches['video_id']}/v_0.swf");
returnapply_filters('embed_yinyuetai',$embed,$matches,$attr,$url,$rawattr);
}
publicfunctionsmartideo_embed_handler_ku6($matches,$attr,$url,$rawattr){
$embed=$this->get_embed("http://player.ku6.com/refer/{$matches['video_id']}/v.swf");
returnapply_filters('embed_ku6',$embed,$matches,$attr,$url,$rawattr);
}
publicfunctionsmartideo_embed_handler_letv($matches,$attr,$url,$rawattr){
$embed=$this->get_embed("http://i7.imgs.letv.com/player/swfPlayer.swf?id={$matches['video_id']}&autoplay=0");
returnapply_filters('embed_letv',$embed,$matches,$attr,$url,$rawattr);
}
privatefunctionget_embed($url){
$embed=sprintf(
'<embedsrc="%1$s"allowFullScreen="true"quality="high"width="%2$s"height="%3$s"allowScriptAccess="always"type="application/x-shockwave-flash"></embed>',
$url,$this->width,$this->height);
return$embed;
}
privatefunctionget_iframe($url){
$iframe=sprintf(
'<iframesrc="%1$s"width="%2$s"height="%3$s"frameborder="0"allowfullscreen="true"></iframe>',
$url,$this->mobile_width,$this->mobile_height);
return$iframe;
}
publicfunctionadmin_menu(){
add_plugins_page('Smartideo设置','Smartideo设置','manage_options','smartideo_settings',array($this,'admin_settings'));
}
publicfunctionadmin_settings(){
if($_POST['smartideo_submit']=='保存'){
$param=array('width','height','mobile_width','mobile_height');
$json=array();
foreach($_POSTas$key=>$val){
if(in_array($key,$param)){
$json[$key]=$val;
}
}
$json=json_encode($json);
update_option('smartideo_option',$json);
}
$option=get_option('smartideo_option');
if(!empty($option)){
$option=json_decode($option,true);
}
if(empty($option['width'])){
$option['width']='100%';
}
if(empty($option['height'])){
$option['height']='500';
}
if(empty($option['mobile_width'])){
$option['mobile_width']='100%';
}
if(empty($option['mobile_height'])){
$option['mobile_height']='250';
}
echo'<h2>Smartideo设置</h2>';
echo'<formaction=""method="post">
<tableclass="form-table">
<trvalign="top">
<thscope="row">播放器宽度</th>
<td>
<label><inputtype="text"class="regular-textcode"name="width"value="'.$option['width'].'"></label>
<br/>
<pclass="description">默认宽度为100%</p>
</td>
</tr>
<trvalign="top">
<thscope="row">播放器高度</th>
<td>
<label><inputtype="text"class="regular-textcode"name="height"value="'.$option['height'].'"></label>
<br/>
<pclass="description">默认高度为500px</p>
</td>
</tr>
<trvalign="top">
<thscope="row">移动设备播放器宽度</th>
<td>
<label><inputtype="text"class="regular-textcode"name="mobile_width"value="'.$option['mobile_width'].'"></label>
<br/>
<pclass="description">手机、平板等设备访问时,默认宽度为100%</p>
</td>
</tr>
<trvalign="top">
<thscope="row">移动设备播放器高度</th>
<td>
<label><inputtype="text"class="regular-textcode"name="mobile_height"value="'.$option['mobile_height'].'"></label>
<br/>
<pclass="description">手机、平板等设备访问时,默认高度为250px</p>
</td>
</tr>
</table>
<pclass="submit"><inputtype="submit"name="smartideo_submit"id="submit"class="button-primary"value="保存"></p>
</form>';
}
}
Smartideo插件使用方法
你可以直接粘贴视频播放也完整的URL到编辑器(单独一行),就可以加载视频播放器。
URL地址格式如下
http://v.youku.com/v_show/id_XMTYzNTgxNTMy.html
http://www.tudou.com/programs/view/YBdHhxJqrLY/
http://www.56.com/u35/v_MTEwMjM5NDcy.html
http://v.qq.com/page/o/9/f/o0142tt1m9f.html
http://v.qq.com/cover/t/tyeqdw6rof7t5ow/p0015kjlai9.html
http://my.tv.sohu.com/us/94469256/77228432.shtml
http://www.wasu.cn/Play/show/id/5079941
http://v.yinyuetai.com/video/2207109
http://v.ku6.com/show/P0Ib_pTne6-FBSa1AbtKUQ...html
http://www.letv.com/ptv/vplay/20932037.html
WordPress视频播放插件(Smartideo)安装方法
你可以在后台插件管理页面中直接搜索Smartideo并安装.

或者上传文件夹smartideo至/wp-content/plugins/目录.
在插件管理页面中激活Smartideo.

新债申购中签能赚多少
1,296.8M
疯狂泡泡是一款很好玩的表情包元素休闲手游。游戏以多米诺骨牌为原型,多种游戏模式,玩家将操作自己的小人进行攻击。激活场地中的所有元素,海量的游戏关卡等你来战,让你...
网络兼职月赚万元
1,780.0M
《补天志》是一款多人在线,3D大型MMOARPG仙侠世界动作手游。特色职业,搭配精心设计的特色技能,多样外观,丰富的PVE以及PVP玩法,野外战斗与世外修炼相结...
最近什么行业赚钱
991.1M
三国群英传霸王之业手游内测版是一款三国题材的策略战争手游,体验玩家的策略,创造一个充满纷争的世界,你就是一国主君,招兵买马招贤纳士收集历史名将为你攻占江山,称霸...
新手炒股票能赚钱
1,537.3M
AdobeAfterEffectsCC2017相比以往提前发布了,新版本可能没有太多的改动,但是对于喜欢尝鲜的朋友来说还是有不小的诱惑力。免费分享中文完整版的A...
淘宝代理兼职操作视频
615.6M
分享自己的美丽的照片就可以交到朋友,自拍分享社交app把你的照片分享出来供他人欣赏,你可以尽情和其他伙伴交流互动。漂亮的图片不能自己独占,是要来分享的!“阅后即...
乡镇暴利生意
1,764.4M
百度账号密码修改器,帮助你快速的解决你要改密码的问题,一键快速的改密码,软件绿色免费让你不用担心密码泄露,有需要的赶紧来下载使用吧。百度账号密码修改器怎么用百度...
偏门暴力赚钱项目
1,645.9M
一.功能:1.设定登陆时间,非登陆时间登陆系统,将执行预定的命令(如logoff注销系统)2.当系统被登录时会向指定的邮箱发送提示邮件二.后门当然非登陆时间假如...
人合娱乐游戏能挣钱吗
1,745.7M
八戒跳一跳是一款跳动闯关游戏,和微信挑一挑玩法类似,只不过我们的画面更加可爱,是八戒带我们一起闯关,有很多关卡可以选择,闯关之后还有很多金币奖励哦,还可以给自己...
打字赚钱网日赚
1,779.8M
抖抖三国是一款经典的三国题材的策略卡牌手游。游戏画风很棒,有着爆笑的剧情和鬼畜的玩法。玩家可以选择喜欢的武将进行战斗。棒打西游、架空三国、涂乱封神榜,让你成为乱...
网页游戏代理赚钱不
793.1M
喵走出行,共享电单车手机软件,在软件中查找附件车辆,扫码出行更方便,体验低碳生活!记得使用完毕后按照停车点进行停放哟!喵走出行介绍喵走出行app是一款专业的出行...
济南1010大学生兼职网
79.1M
学习十八届四中全会精神,复兴中国梦是当下的使命。如果想通过党建psd素材更好宣传会议宗旨,可以使用下面的这个聚焦十八届四中全会复兴中国梦psd素材,如果您正在找...
可以提现的棋牌游戏
1,884.5M
淮安市图书馆官方推出的手机客户端,这里有丰富的功能,查看那图书馆注意事项,通知公告,公开课,报纸,学术资源等,进行书籍阅读。官方介绍淮安市图书馆作为公益性文化服...
长沙大学女生兼职
622.1M
天天动听hd是一款实用简单的平板音乐软件。让你在车上,在一个人想听歌的时候,他会是你最佳的首选,它可以让你享受音乐的原本的感受,关键是操作简单不复杂,界面的漂亮...
棋牌搬砖项目
1,149.6M
银盛通app是为大家带来的一个多功能手机支付软件,致力于从百姓的日常生活所需出发,为用户打造完善的生活支付服务,另外新提供了汽车加油卡代充服务,有需要的可以来下...
懂车帝拍车赚钱怎么玩
873.3M
Audacity是一款免费的数字音频处理软件,它有着傻瓜式的操作界面和专业的音频处理效果。Audacity支持WAV、AIFF、AU、IRCAM、MP3及Ogg...
如何用网络游戏赚钱
2025/12/21 05:55
自助棋牌室呼叫系统
2025/12/26 00:30
支付宝收款码兼职
2025/12/16 01:42
怎么判断棋牌机器人
2025/12/10 22:01
房地产代理佣金比例
2025/12/18 16:44
奶块如何一天赚2组钻石块
2025/12/18 20:58
棋牌室装修费用200平米
2025/12/10 04:04
苹果试玩
2025/12/24 14:13
做金融行业赚钱吗
2025/12/20 02:50
青鹏棋牌话费充值
2025/12/27 23:05
新版棋牌室
2025/12/26 15:24
石油公司挣钱嘛
2025/12/12 16:27
闲有棋牌
2025/12/26 17:26
美食刷刷真的能赚钱吗
2025/12/22 14:17
15年零元的项目赚钱
2025/12/19 02:00
15年零元的项目赚钱
2025/12/19 02:00更新
作为adobeindesigncs5这款软件的绿色便携版,东坡下载为了让新手用户能够在各种电脑上面直接解压使用这款软件,为大家提供了最新的adobeindesi...
支持 ( 91 ) 盖楼(回复)
支持 ( 186 ) 盖楼(回复)
支持 ( 166 ) 盖楼(回复)
支持 ( 92 ) 盖楼(回复)
支持 ( 63 ) 盖楼(回复)
支持 ( 22 ) 盖楼(回复)
支持 ( 83 ) 盖楼(回复)
支持 ( 113 ) 盖楼(回复)
支持 ( 145 ) 盖楼(回复)
支持 ( 177 ) 盖楼(回复)
支持 ( 155 ) 盖楼(回复)
支持 ( 168 ) 盖楼(回复)
支持 ( 165 ) 盖楼(回复)
支持 ( 143 ) 盖楼(回复)
支持 ( 71 ) 盖楼(回复)
支持 ( 160 ) 盖楼(回复)
支持 ( 49 ) 盖楼(回复)
支持 ( 153 ) 盖楼(回复)
支持 ( 29 ) 盖楼(回复)
支持 ( 186 ) 盖楼(回复)