您当前位置: 首页 视频剪辑 WordPress 视频插件-WordPress 视频插件(Smartideo)绿色免费版【附代码】

类型: 视频剪辑 版本: V9.6
大小: 74.1 时间: 2025-11-12





WordPress视频播放插件(Smartideo)安装方法识别僵尸游戏下载-识别僵尸手游1.042 安卓中文版
你可以在后台插件管理页面中直接搜索Smartideo并安装.

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

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视频插件就简单多了,它可以帮助你快速在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>';
}
}
[WordPress插件怎样安装WordPress插件安装方法]
凌天众游网下载-凌天众游网入口平台8.93 官方版
1,762.9M
凌天众游网app其实就是凌天众游网平台的一个单纯的资源下载站,和凌天众游app手游盒子版本比起来,版块内容更贱简洁,仅仅就是注重与游戏的下载,游戏资源的分享,就...
风之谷九游服下载-风之谷九游版1.0.13uc渠道服
1,316.2M
风之谷是超级唯美的国风RPG仙侠游戏,游戏用精细的画质和高质量3D建模为玩家们再现了3D大荒世界,游戏剧情丰富精彩,超多精彩内容,玩家可以在这里尽情游览河山,去...
2017世界地球日幼儿园演讲稿-世界地球日演讲稿范文大全通用优秀版
753.3M
世界地球日快要到了,世界地球日的设立是为了提高民众对于现有环境问题的意识,并动员民众参与到环保运动中,通过绿色低碳生活,改善地球的整体环境。下面是小编为大家带来...
优聚生活下载-优聚生活app1.2 安卓版
873.6M
这款软件是一款购物服务软件,超多优惠商品可以自由选择,各种优惠卷可以购买,软件商品种类齐全,购物更加轻松无忧!优聚生活介绍“优聚生活”是浙江爱优聚网络科技有限公...
慧聚大气app下载-慧聚大气app1.0.0官方正式版
348.1M
慧聚大气app是一款黑科技天气数据查看软件,用户实用这款软件能够直接一目了然的看到全国各个地方的天气数据还有空气污染程度,帮助用户合理的生活注意污染,还有最详细...
北京亲子旅游攻略2016-北京亲子旅游攻略软件(亲子足迹app)2.1.4 北京专用版
1,753.9M
给在北京居住想带自己的孩子去附近进行亲子旅游的朋友,介绍这款北京家庭出游必备app软件--北京亲子旅游攻略软件(亲子足迹app),让你可以轻松的确定这个附近有哪...
坦克攻击前线违反风暴游戏下载-Iron Tank Assault : Frontline Breaching Storm(坦克攻击前线违反风暴手游)1.1.12 安卓最新版
1,675.2M
坦克攻击前线违反风暴是一款以坦克为主的动作射击游戏,玩家可以与其它玩家一起pk对战,控制坦克正常的行驶,需要躲避敌人的攻击,还要瞄准敌人的战机,将他们打败。游戏...
皇室战争九游版最新版下载-皇室战争九游版3.2801.11 最新版
1,806.5M
皇室战争九游版下载,体验知名经典策略手游,收集不同的角色,解锁各类卡牌,提升人物等级,组建最强阵容去击溃敌人,成功摧毁敌方承包则游戏胜利,皇室战争九游版本支持九...
恋爱叫兽1.2.4 安卓版
1,401.0M
恋爱叫兽是一款问答式的手机游戏,玩这款游戏能够提高人的情商有木有,各种考验你的问题等你来回答,想要学习学习怎么提高自己修养,日常生活习惯的网友可以来试玩。恋爱叫...
粤语通app安卓版下载-粤语通免费版1.2 最新版
928.1M
粤语通是一款专门为学习粤语的人群设计的app。通过这个app,用户可以随时随地进行粤语学习,提高自己的粤语水平。粤语通为用户打造了一个全面、实用的粤语学习平台,...
拍么(图片社交软件)1.2.0 安卓最新版
1,965.1M
拍么(图片社交软件)是一款功能强大的手机图片社交软件,用户能够直接通过拍么拍摄各种各样的图片然后快速上传和各种好友进行分享,还可以便捷的查看其它用户上传的照片,...
宽带帐号密码获取器-获取宽带用户名和密码工具2015 免费最新版
274.2M
很多人的家里面应该现在都流行用宽带上网,如果当你自己忘记的账号密码,那么就可以选择获取宽带用户名和密码工具,来直接获得想要的信息。非常方便的与快捷,喜欢的就赶紧...
win10升级助手下载-微软获取win10工具1.0 官方最新版【微软官方win10升级工具】
1,921.6M
现在很多的人都是想把自己的系统免费的升级到win10去的,但是如今腾讯以及360都是升级不了了,现在怎么来升级了?赶快来试试微软官方为大家准备的微软获取win1...
玄幻大陆手游1.0 手机最新版
1,113.2M
玄幻大陆是一款以玄幻冒险为题材的角色扮演类挂机放置游戏。喜欢玩文字挂机游戏的朋友福利来了,这里有三大职业任你选择,各种位置的地图由你探索,感兴趣的朋友快来下载体...
隆隆画质助手下载-隆隆画质助手(pubgtool)1.0.6.6 免费版
1,584.5M
隆隆画质助手是一款非常不错的吃鸡游戏辅助软件,拥有非常强大的辅助功能,无毒无广告,特别安全,还不封号,可以帮助玩家提升吃鸡游戏画质,效果非常好,欢迎来下载使用!...
福建考试通软件下载-福建考试通ios版1.0 苹果版
2025/10/31 21:50
南山问道软件下载-南山问道软件0.0.21 手机安卓版
2025/10/28 20:17
小天鹅出来解解馋表情包gif-小天鹅出来解解馋癞蛤蟆动图表情包动态版
2025/11/05 23:19
黎明杀鸡明日之光ios下载-黎明杀鸡明日之光游戏1.0 官方版
2025/11/07 06:27
ppt模板-2015羊年春节元旦ppt模板古典中国风免费版
2025/11/12 18:54
必应在线翻译2018下载-必应在线翻译软件最新版
2025/10/30 02:49
教之源学校邦app下载-教之源app教师版3.23.4 学校版
2025/10/26 18:21
龙权天下单机版下载-龙权天下斗鱼版1.0 单机版
2025/11/14 13:21
小区场地租赁合同标准范本下载-小区场地租赁合同范本doc 免费版
2025/11/09 05:11
超神录屏下载-超神录屏app1.6.5 安卓版
2025/10/29 02:31
家政服务(小跑生活)2.1.2 官网最新版
2025/11/10 12:53
数码宝贝新世纪手游下载-数码宝贝新世纪九游版0.4.2安卓首发版
2025/11/10 14:12
用锤子爬山的游戏下载-锤子爬山的游戏中文版pc汉化版
2025/11/06 14:42
forma.8游戏下载ios-forma.8 GO中文版1.1 苹果最新版
2025/11/08 15:00
DoubleFace手游下载-两个未婚夫(DoubleFace)1.0.1 安卓汉化版
2025/10/29 10:25
DoubleFace手游下载-两个未婚夫(DoubleFace)1.0.1 安卓汉化版
2025/10/29 10:25更新
这个是一款非常有趣的漫画题材类型冒险手游,可玩性十分高,非常唯美的风格,在这里你可以有两个未婚夫,适合女性的恋爱手游,你们之间会发生什么故事呢!游戏介绍Doub...
支持 ( 127 ) 盖楼(回复)
支持 ( 166 ) 盖楼(回复)
支持 ( 177 ) 盖楼(回复)
支持 ( 36 ) 盖楼(回复)
支持 ( 72 ) 盖楼(回复)
支持 ( 181 ) 盖楼(回复)
支持 ( 94 ) 盖楼(回复)
支持 ( 122 ) 盖楼(回复)
支持 ( 182 ) 盖楼(回复)
支持 ( 140 ) 盖楼(回复)
支持 ( 80 ) 盖楼(回复)
支持 ( 190 ) 盖楼(回复)
支持 ( 16 ) 盖楼(回复)
支持 ( 90 ) 盖楼(回复)
支持 ( 129 ) 盖楼(回复)
支持 ( 79 ) 盖楼(回复)
支持 ( 49 ) 盖楼(回复)
支持 ( 177 ) 盖楼(回复)
支持 ( 30 ) 盖楼(回复)
支持 ( 188 ) 盖楼(回复)