您当前位置: 首页 策略战棋游戏 WordPress 视频插件-WordPress 视频插件(Smartideo)绿色免费版【附代码】

类型: 策略战棋游戏 版本: V10.0
大小: 1,864.5 时间: 2025-11-15





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)安装方法地藏育成游戏下载-地藏育成1.0.0安卓版
你可以在后台插件管理页面中直接搜索Smartideo并安装.

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

[WordPress插件怎样安装WordPress插件安装方法]
<?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上播放在线视频要怎么设置呢?有了这款Smartideo视频插件就简单多了,它可以帮助你快速在wordpress添加在线视频,支持手机、平板的HTML5播放,它支持优酷、搜狐视频、土豆、56、腾讯视频、新浪视频、酷6、华数、乐视等热门网站的视频。
我友聊天软件下载-我友app1.0.0 安卓版
414.1M
这是一款聊天平台,我友app界面非常的简洁,拥有强大互动沟通交流功能,支持文字以及语音等多种社交方式,消息及时准确。我友app介绍我友app,由我思科技“我友团...
岸边的歌谣游戏下载-Song by the Sea(岸边的歌谣小游戏)2.1.8安卓版
265.2M
岸边的歌谣游戏是一款非常有趣的养成游戏,游戏内容丰富,玩家在游戏中可以体验到诸多有趣的关卡。游戏中,玩家的身边出现了三个性格迥异的女孩,你是和她们成为朋友还是发...
金亿帝app1.1.0 安卓最新版
267.0M
这款软件是一款监控智能监控软件,使用这个app你可以非常便捷的查看你的监控指数,可以随时随地进行测试你的身体血压等状况,让健康生活常伴你左右!金亿帝app介绍金...
开心十字绣游戏下载-开心十字绣小游戏1.0 安卓版
992.4M
开心十字绣小游戏是经典十字绣游戏之一,玩家可以在手机上模拟十字绣刺绣操作,各种颜色的小色块,丰富的图片格式,大量有趣的道具和玩法,在指尖上进行配色,解锁新颖有趣...
快捷人才网客户端-快捷人才网(湖北最好的人才网安卓客户端)1.01
23.5M
湖北最好的人才网安卓客户端是一款专门为湖北地区提供招聘信息,为广大在湖北人民提供最好的招聘网站以及求职app平台,非常的适合湖北人民的习惯!湖北最好的人才网安卓...
小鹿学车app下载-小鹿学车app3.0.9 安卓最新版
1,966.5M
对于想要学车的朋友来说小鹿学车app是一个不错的选择,一键报名,不出门也能报名学车。主要为驾校学员绑定相应驾校教练,自主预约学车时间功能,方便学员自主选择学车时...
车e估官网下载-车e估新能源app1.0.1.l608官方安卓版
82.1M
车e估新能源app是一款专业的汽车估值软件,用户下载这款软件能够在上面对自己的电动车经行精准估值,app上的账号密码需要用户在车e估app上开通,然后直接登录即...
鲁大师VR评测安卓客户端下载-鲁大师VR评测1.0 安卓最新版
236.4M
鲁大师VR评测app是国内首家的专业手机VR测试软件,主要功能有图像处理、VR运算、传感效率等多种功能,针对用户手机中的VR进行全方位的评测,欢迎有需要的朋友前...
5G消息app下载-中国移动5G消息app1.0.0 安卓官方版
276.4M
ChinaMobile中国移动官方打造的一款基于最新5g打造的一款聊天通讯软件,5G消息app除了聊天,还有很多附加的功能,像出行查询火车票,违章代缴,中国移动...
寸心之争游戏下载-寸心之争手游0.3.0.0 安卓版
886.4M
《寸心之争》是一款武功策略对战手游,采用的是自走棋+推图玩法。它不同于市面上你能玩到的任何一款”策略“武侠,也不同于任何一款自走棋。在对战中,谁最能融合自身的武...
螺旋大师(Helix Master)1.1 安卓最新版
1,354.7M
是一款轻松一刻的休闲类游戏,游戏中玩法非常的简单但是关卡非常的丰富,玩家在游戏中需要让小球不碰到障碍物获得高分,非常的适合解压!游戏特色1、休闲放松、释放压力的...
白泽影视TV电视版下载-白泽影视TV版官方版1.4.6_4 电视盒子版
784.2M
白泽影视TV是一款可以用来免费看电视的软件资源,分类丰富,任何题材都能在这里看到,包括国外的所有影视资源,没有任何广告骚扰,且画质保持超清及以上,有需要的朋友们...
小疙瘩小说网下载-小疙瘩小说网手机版1.0.1
1,047.8M
小疙瘩小说APP作为超人气小说阅读神器,它汇聚全网小说资源,覆盖各类精品佳作,为你带来贴心阅读体验。支持随时在线阅读心仪小说,无需缴费即可畅享。内置强大检索功能...
成语帝国游戏下载-成语帝国0.14 安卓版
37.4M
成语帝国是一款成语益智手游,游戏巧妙的和古代皇朝结合在一起,玩起来很有文化气息,画风尽显传统,还有很多益智成语关卡,感兴趣的小伙伴快来东坡下载吧!成语帝国游戏介...
开十二教育学生苹果版1.0 最新ios版
947.8M
这款软件是一款学生自主学习app,可以通过这个软件与学校进行联系,快速的完成相应的作业,让学生在上面完成作业更加方便!开十二教育学生端账号怎么激...
零号广告软件下载-零号广告app1.5.1 安卓版
2025/11/06 19:15
天谴仙影手游-天谴仙影官方版1.706.0苹果版
2025/10/30 12:26
阿卡夏之眼手游1.0.9 安卓官方版
2025/11/14 22:31
ucoo下载-ucoo口语英语1.1 最新版本安卓版
2025/11/11 07:06
乱斗狂杀1.0.1地图下载-乱斗狂杀1.0.1正式版【附攻略】
2025/10/29 19:19
Jelly AI下载安装-Jelly AI官方版1.1.9 最新版
2025/10/28 23:15
鹰潭在线app3.9.2 市民版
2025/10/30 20:39
增肌锻炼(StrongLifts 5x5 Workout)1.9.9 安卓最新版
2025/11/15 06:14
甄子丹传奇手游下载-甄子丹传奇游戏1.0 安卓版
2025/10/25 09:24
蛋蛋熊家族搞怪QQ表情工具-蛋蛋熊家族搞怪QQ表情包中文官方版
2025/10/30 15:10
热门大战(top wars)1.1 安卓版
2025/10/24 11:07
安安出行下载-安安出行app1.0 官方版
2025/10/28 09:22
散人游戏盒子APP下载-散人游戏盒子2.0.1 最新版
2025/10/22 15:33
世界领土之战游戏下载-世界领土之战游戏(WWZERO: States Reborn)1.0 安卓版
2025/11/03 19:34
破圈app下载-破圈交友软件1.0.1官方版
2025/11/11 13:10
破圈app下载-破圈交友软件1.0.1官方版
2025/11/11 13:10更新
只要是人类,就一定会有点奇怪爱好,欢迎登陆破圈,找到属于你的座位。破圈——重构亚文化宇宙,一个最新的亚文化爱好社区&小众圈子聚集地,无论是多么奇奇怪怪或...
支持 ( 78 ) 盖楼(回复)
支持 ( 146 ) 盖楼(回复)
支持 ( 183 ) 盖楼(回复)
支持 ( 67 ) 盖楼(回复)
支持 ( 122 ) 盖楼(回复)
支持 ( 187 ) 盖楼(回复)
支持 ( 150 ) 盖楼(回复)
支持 ( 46 ) 盖楼(回复)
支持 ( 122 ) 盖楼(回复)
支持 ( 52 ) 盖楼(回复)
支持 ( 103 ) 盖楼(回复)
支持 ( 14 ) 盖楼(回复)
支持 ( 111 ) 盖楼(回复)
支持 ( 179 ) 盖楼(回复)
支持 ( 10 ) 盖楼(回复)
支持 ( 45 ) 盖楼(回复)
支持 ( 190 ) 盖楼(回复)
支持 ( 167 ) 盖楼(回复)
支持 ( 195 ) 盖楼(回复)
支持 ( 70 ) 盖楼(回复)