您当前位置: 首页 语言学习 在家室内养殖赚钱项目

类型: 语言学习 版本: V5.2
大小: 1,057.3 时间: 2025-12-13





WordPress视频播放插件(Smartideo)安装方法
你可以在后台插件管理页面中直接搜索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插件怎样安装WordPress插件安装方法]AYX官方网站
<?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、华数、乐视等热门网站的视频。
微商赚钱好项目怎么找
905.0M
MP3Diags(MP3ID3快速编辑器)可用于编辑ID3标记。这个程序不显示需要填充每个跟踪的表单,而是让您通过保留列表形式同时编辑所有文件。还可以执行其他一...
最火爆的赚钱游戏机
904.9M
以撒的结合起始人物编辑器是一款游戏以撒的结合的辅助工具。让你可以编辑起始人物。有需要的可以来东坡下载使用!以撒的结合起始人物编辑器说明以撒的结合起始人物编辑器,...
网上兼职批改作业靠谱吗
1,234.1M
好玩的制造火箭模拟游戏,我爱造火箭准备了很多的零件,玩家要对火箭的各个零件进行组合,不同的组合有不同的性能,让玩家身临其境的投入到航空航天工作中去。我爱造火箭游...
拍片怎么赚钱
1,994.2M
小说阅读是很多网友的一种休闲方式,那么小书迷小说阅读器由旭日软件工作室开发的一款免费小说阅读器。这款软件有一些什么样的特点呢?接下来,小编给大家介绍一下这款软件...
佳禾食品新股能赚多少
753.3M
免费的路由器管理工具,可以轻松管理你的手机路由器,软件路由器功能是非常强大的,可以轻松远程进行管理,而且可以轻松查看有多少设备连接了路由,更加轻松的管理工具让使...
youtube平台怎么赚钱
410.9M
混沌风暴手游ios版是一款非常好玩的游戏,玩家需要在混沌中成为一个天神,天下无敌般的存在,让你每天都能开开心心的玩家下去,需要的下载吧。混沌风暴手游ios版说明...
宁波兼职女信息
425.0M
昕浏览器Pro是一款非常简易的手机浏览器,自带屏蔽广告的功能,支持语音搜索,云端加速搜索引擎,上网安全又快速,还能及时释放cpu,帮你省电。能屏蔽广告、及时释放...
女神异闻录5赚钱
1,491.3M
核桃围棋是一款线上围棋学习软件,支持0基础在线学习,超级丰富的游戏规则教程,还有线上老师在线指导,AI随时对战练习。根据用户不同的阶段,配备不同的难度,逐步提升...
兼职求职信怎么写
1,972.1M
贵州农业气象app是一款由贵州省气象局专为农业生产者推出的气象服务应用,为用户提供最新的气象变化信息,专业的农业气象条件分析及时发布,还有农业专家在线指导,帮助...
有什么挣钱快的路子
768.3M
搜图神器是一款功能强大的搜图软件,这里有你想要的高清手机壁纸,美女图片,海量图片想搜就搜,持一键下载保存到手机,喜欢的朋友快来下载吧。搜图神器官方app介绍装机...
在家兼职做网站
1,055.6M
蜻蜓fm苹果版是一款中国大陆的广播电台,它播放音乐流畅,任何环境下均可以轻松听,还可以在微社区进行实时互动,想了解更多精彩内容就来东坡下载吧!蜻蜓FM应用介绍蜻...
超市怎么做赚钱
380.0M
OtoMusicPro是一款功能强大、外观华丽材料设计「MaterialDesign」的安卓本地音乐播放器。非常简洁但是非常强大,漂亮的设计,好用的交互,流畅适...
最新棋牌送3金币下载
280.6M
洪兴神途手游版,80后的集体回忆,神装靠打,爆率9.8!洪兴神途,装备自由交易,挂机一晚神装爆9阶橙装!在洪兴神途游戏里面开局上线就送你免费vip,后期还有大量...
购货佣金是买方佣金吗
1,030.0M
这款软件是一款非常好用的移动便民软件,可以通过这个app在手机上面方便办事,超多的服务项目可以自由的查看,让大家生活便民更加方便!一部手机办事通介绍“一部手机办...
甘肃小生意加盟
1,805.6M
WiFi伴侣专业版苹果版是WiFi伴侣付费专业版,是可以享受到免费的wifi连接的功能,在任何的地方都是可以进行连接上网而且还是没有什么广告的!WiFi伴侣专业...
vps挂机赚钱项目
2025/11/27 15:21
包装设计利润高吗
2025/11/24 02:23
现在能赚钱的热门游戏
2025/12/03 23:58
余姚兼职网招聘信息网
2025/11/24 08:55
充场办手机卡兼职
2025/11/25 23:16
有多台电脑怎么赚钱
2025/11/30 11:35
免费红包来了
2025/11/26 17:32
想投资做点小生意赚钱
2025/11/29 13:37
兔牙棋牌app下载
2025/12/04 08:33
自己在家兼职做什么好
2025/11/24 19:52
学生怎么一个月赚一万
2025/11/19 18:16
英语兼职老师待遇
2025/11/25 07:55
态度8提现限制
2025/11/20 11:46
米赚头条能赚多少
2025/12/03 09:04
利用网络平台赚钱方法
2025/11/27 21:54
利用网络平台赚钱方法
2025/11/27 21:54更新
这是一款三国题材的角色养成游戏,在三国志名将令里,玩家将会收集英雄并且进行培养升级他们的属性,你是他们的主人并且带领他们取得胜利!三国志名将令特色——三国名将个...
支持 ( 192 ) 盖楼(回复)
支持 ( 131 ) 盖楼(回复)
支持 ( 112 ) 盖楼(回复)
支持 ( 151 ) 盖楼(回复)
支持 ( 27 ) 盖楼(回复)
支持 ( 124 ) 盖楼(回复)
支持 ( 124 ) 盖楼(回复)
支持 ( 10 ) 盖楼(回复)
支持 ( 94 ) 盖楼(回复)
支持 ( 188 ) 盖楼(回复)
支持 ( 165 ) 盖楼(回复)
支持 ( 52 ) 盖楼(回复)
支持 ( 44 ) 盖楼(回复)
支持 ( 59 ) 盖楼(回复)
支持 ( 161 ) 盖楼(回复)
支持 ( 141 ) 盖楼(回复)
支持 ( 12 ) 盖楼(回复)
支持 ( 31 ) 盖楼(回复)
支持 ( 39 ) 盖楼(回复)
支持 ( 25 ) 盖楼(回复)