您当前位置: 首页 游戏辅助工具 WordPress 视频插件-WordPress 视频插件(Smartideo)绿色免费版【附代码】

类型: 游戏辅助工具 版本: V6.2
大小: 276.7 时间: 2025-11-13





[WordPress插件怎样安装WordPress插件安装方法]
Smartideo插件使用方法Excel超级比较汇总工具2.2 免费版
你可以直接粘贴视频播放也完整的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视频播放插件(Smartideo)安装方法
你可以在后台插件管理页面中直接搜索Smartideo并安装.

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

快乐渔夫手机版下载-快乐渔夫手游1.0.5安卓版
1,277.6M
快乐渔夫是一款非常好玩的3D经典捕鱼手游,游戏中为你带来真实的海底捕鱼场景,趣味的捕鱼音乐,给你一个休闲娱乐捕鱼好时光,快来享受捕鱼乐趣!游戏介绍《快乐渔夫》官...
喵喵酒店下载app-喵喵酒店官方游戏(MeowTel)0.12 安卓版
248.3M
《喵喵酒店》(Meowtel-HotelforMousey)是一款模拟经营类游戏,玩家在游戏中扮演一名猫咪经理,经营一家专门为老鼠们提供的酒店。这款游戏结合了策...
方程物流司机端下载安装-方程物流司机端app1.1.5 安卓版
841.1M
方程物流司机端app是一款专为物流司机设计的移动应用程序,旨在提供便捷、高效的物流服务体验。让司机能够更加便捷、高效地完成工作任务,提高收入水平。司机在接单后就...
决战平安京vivo渠道服下载-决战平安京vivo版本1.171.0最新版
1,442.8M
决战平安京vivo版本是vivo系列手机专用版本,游戏采用原版声优阵容,游戏地图与传统MOBA类似,玩家可选英雄全为《阴阳师》中式神,野怪成了阴阳师里的麒麟等,...
深渊幻影1.0.5激活码版
1,934.3M
深渊幻影是一款二次元RPG放置挂机手游,其游戏人物立绘风格高度统一,以游戏独特的轻幻想日式美术风格,为各位玩家匠心打造出超高颜值的游戏人物。游戏不仅对每一位英雄...
黑龙江省地税社保缴费申报客户端-社保缴费申报工具2.01 绿色版
1,585.0M
社保缴费申报工具是一款拥有两大模块的黑龙江省地税社保缴费申报客户端。一、申报信息采集;二、系统维护,提供了对社保。有需要的可以来东坡下载使用!社保缴费申报工具说...
巨麦回收网app官方版下载-巨麦回收网2.3.4 官方最新版
1,340.7M
巨麦回收网app是一款专业的二手废旧物资回收平台,这里有各类物资的信息,当前市场报价,行业动态,非常全面,有喜欢的朋友快来下载体验吧!回收宝专业版appV5.6...
爱拓奇APP下载-爱拓奇(italki)官方版4.3.1-italki_cn 最新版
1,259.1M
爱拓奇(italki)是个比较不错的全球语言一对一学习平台,主打“无捆绑消费+母语外教资源+全场景学习”,覆盖150余种语言课程,通过1对1视频授课、社区交流、...
螺旋跳跃怪物(Helix Jump Monsters)1.1 安卓版
603.7M
这是一款非常好玩的螺旋跳塔类型游戏,可玩性十分高,这是的主角是小怪物哦,经典的玩法,最近这类型游戏在抖音上特别火,不断地下降,挑战最高分!手游介绍一款非常不错的...
成语小超人答案-成语小超人app1.1.3官方最新版
608.3M
成语小超人app是一款以学习成语为主的软件,用户下载这款软件就能够投入进去猜成语,app分为几个难度模式,用户能够根据难度来,由简到繁的练习,饱和自己的知识储备...
艺书宝app下载-艺书宝app1.3.1 安卓版
546.1M
艺书宝app提供书法绘画课程的拓展教育学习软件,专为儿童打造,为孩子提供书法、绘画等800+课程在线学习,内容科学、丰富,寓教于乐的教学方式,帮助培养孩子艺术兴...
太空里的植物课件-太空里的植物教学课件免费下载【共8页】
977.2M
这是一篇小学美术太空里的植物教学课件,课件制作比较精细,全篇课件共有8页,有需要准备这篇小学美术课件的老师们可以来我们东坡免费得下载,需要更多的美术课件尽可关注...
福利金猪游戏下载-福利金猪1.01 安卓版
1,326.0M
福利金猪是一款养猪游戏,在游戏中你可以养殖各种品种的猪,玩法轻松自由,还有各种红包福利领取,在家躺着就能玩还能赚钱,利用空余时间赚待你零花钱吧!感兴趣的朋友们可...
垃圾场模拟器手游下载-Junkyard Builder(垃圾场模拟器)0.32 最新版
1,483.0M
垃圾场模拟器是一款模拟器的软件,玩家可以在这款软件中进行垃圾的回收处理,一款以第一视角展示的休闲模拟手游,游戏以垃圾站为主题,在玩家们需要将各类垃圾进行分类,清...
时尚农场女孩沙龙游戏2.14 安卓手机版
1,194.0M
这款游戏是一款非常好玩的美妆游戏,在游戏中你可以对你的女孩的样式自己的进行更改,通过各种不同的装扮让少女看起来更加与众不同!时尚农场女孩沙龙介绍农场女孩今晚要参...
天御乾坤游戏下载-天御乾坤手游官方版2.140247 安卓版
2025/10/28 00:40
知社学术圈app-知社学术圈1.2 安卓官网免费版
2025/10/17 22:54
神马看书3.60官方最新安卓版【免费小说阅读】
2025/10/29 14:05
百词斩爱阅读ios免费下载-百词斩爱阅读苹果最新版1.0.0 官方iPhone版
2025/11/07 18:31
电脑挂机锁-OneBlue锁屏v1.2 绿色正式版
2025/10/25 14:12
玉溪智慧停车app1.0 手机版
2025/10/18 11:23
辐射4mod制作工具-辐射4mod管理器1.2 免费最新版 【主机版】
2025/10/17 14:56
畅爽点点APP下载官方版-畅爽点点(自动连点器)APP1.0.0 最新版
2025/10/20 18:07
云控慧联1.0.120免费版
2025/10/23 22:52
暴雪游戏资讯app1.1 安卓免费版
2025/10/28 18:15
天外莱客-宠物生活记录3.0 主人版
2025/11/02 14:11
米琪果汁店2下载-米琪果汁店2正版1.0.0 安卓版
2025/10/26 14:46
简易取Eax屏幕取色下载-简易取Eax软件1.0 绿色版
2025/11/01 05:09
Navisworks Manage电脑版下载-Navisworks Manage官方版20.0.1382.63 免费版
2025/10/29 08:14
清理大师官网app下载-清理大师1.0 苹果官方版
2025/10/25 02:44
清理大师官网app下载-清理大师1.0 苹果官方版
2025/10/25 02:44更新
清理大师是一款功能非常强大的优化手机空间的内存和照片管家。它是一个很好的手机助手,帮助清理你手机中的垃圾软件,同时还能优化你的内存空间。还有更多功能等你来发掘,...
支持 ( 34 ) 盖楼(回复)
支持 ( 78 ) 盖楼(回复)
支持 ( 37 ) 盖楼(回复)
支持 ( 107 ) 盖楼(回复)
支持 ( 145 ) 盖楼(回复)
支持 ( 178 ) 盖楼(回复)
支持 ( 35 ) 盖楼(回复)
支持 ( 181 ) 盖楼(回复)
支持 ( 173 ) 盖楼(回复)
支持 ( 12 ) 盖楼(回复)
支持 ( 132 ) 盖楼(回复)
支持 ( 34 ) 盖楼(回复)
支持 ( 125 ) 盖楼(回复)
支持 ( 67 ) 盖楼(回复)
支持 ( 161 ) 盖楼(回复)
支持 ( 56 ) 盖楼(回复)
支持 ( 127 ) 盖楼(回复)
支持 ( 59 ) 盖楼(回复)
支持 ( 71 ) 盖楼(回复)
支持 ( 165 ) 盖楼(回复)