您当前位置: 首页 教育学习 一天能赚100到500彩票平台

类型: 教育学习 版本: V3.7.84
大小: 97.6 时间: 2025-11-26





在wordpress上播放在线视频要怎么设置呢?有了这款Smartideo视频插件就简单多了,它可以帮助你快速在wordpress添加在线视频,支持手机、平板的HTML5播放,它支持优酷、搜狐视频、土豆、56、腾讯视频、新浪视频、酷6、华数、乐视等热门网站的视频。
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插件安装方法]金蝶代理商一年能赚多少钱
<?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>';
}
}
学生用微信怎么赚钱
597.4M
百将传说手游是一款非常好玩的冒险类策略游戏,百将传说这款游戏由冰河游戏开发,在游戏中你可以体验到各种不同职业pk对战的玩法,爽快的决斗操作,感兴趣的可以试玩哦!...
手机有什么赚钱平台
1,452.9M
视频网站广告屏蔽专家是你屏蔽视频网站广告的好帮手,平时大家在网上看各种视频的时候最烦心的就是各种各样的广告了,而且现在的广告的时间也是越来越长,通过本工具能够有...
亚美体育提现失败
1,704.9M
想查询某一域名或多个域名是否注册?原来的域名查询是一个一个去手工查询,这样非常慢也非常费力,有了未注册域名查询软件就不一样了,能组合生成大量的令您满意的域名,如...
网络挣钱的软件有哪些
1,625.5M
这是一款简单的小说阅读软件,提供的是一些轻小说资源,完全免费阅读,支持在线订阅,各种二次元魔法小说,专属的小说社区软件,非常好玩!软件介绍QC原创轻小说,一个在...
网上棋牌能相信吗
1,374.3M
守城物语2v全皮肤版1.65最新版本已经发布,非常不错的防守地图,解锁全部英雄皮肤,所有英雄都可以玩了,欢迎来下载体验!守城物语2v1.65版本介绍地图名称:守...
比特币怎么挖矿赚钱
1,749.5M
soupsoupamazing室一款非常好玩的休闲寻物闯关小游戏,游戏设置了丰富的关卡,在规定时间内寻找出屏幕下方所要找出来的物品就能成功通关,一定要仔细寻找,...
农业公司怎么赚钱
1,272.0M
陪学宝app是一款亲子交流app,当父母外出孩子无人陪伴时,这款app能够有效的帮助双方互相交流。陪学宝app介绍“陪学宝”是一款基于家庭亲子关系,配合儿童机器...
好大一把剑赚钱
114.5M
低空飞行手游是一款休闲益智游戏,玩家需要控制飞机躲过过山石,树木,穿越障碍抵达目的地,快来下载挑战吧!可以开飞机的游戏游戏介绍低空飞行(Overground)是...
比盗窃后备箱挣钱快
1,679.0M
蜀山战纪2踏火行歌手游是正式开启测试,玩家可以正常进入游戏了,这款游戏非常不错,多种特色玩法,给玩家超爽体验,炫酷羽翼,装逼撩妹必备!蜀山战纪2踏火行歌神翼系统...
闲来麻将微店如何提现
1,019.0M
这里是人民警察ppt动态模板,以庄严的人民警察为背景,蓝色大气,适合制作政府行政执法、警察工作总结,为人民服务,赞美等ppt,大家可以进行免费的下载。人民警察p...
快手农村网红拍视频怎么挣钱
1,612.8M
全民灌篮高手是一款灌篮手游,游戏中可以非常快速的对战,有好玩的玩法,畅快的游戏体验感,可以操作控制篮球进入球框,多样的对战,减压必备,丰富的挑战玩法。全民灌篮高...
云顶天天赚截图
1,472.5M
新助邦知识链平台手机APP是一款能为用户提供知识服务的应用,而该软件旨在为用户打造了一个便捷、全面且智能的知识生态系统。它依托先进的技术,整合丰富的资源,致力于...
2018买股票挣钱吗
348.9M
新天下无双超V版是款唯美梦幻的仙侠修仙手游,超唯美细腻的修仙世界地图和副本,在这一别具匠心的修真世界,掩藏了丰富多彩精采的修真故事情节等着你去感受。游戏福利1....
请问养黑山羊赚钱吗
886.5M
煲汤食谱是一款专门为你提供煲汤配方的软件,让你每天都不再为煲汤烦恼,喜欢的朋友不要忘记下载哦。煲汤食谱介绍煲汤食谱是专业为美食爱好者提供精品煲汤配方的APP。我...
电子游戏厅赚钱
695.2M
合合大厨游戏(MergeCooking)介绍您知道不用旅行也能品尝世界各地的美食吗?您知道只需几个简单的步骤就能掌握烹饪秘诀吗?系好围裙,戴上厨师帽!在《Mer...
塞子棋牌游戏代理价格
2025/11/18 20:03
天天看视频app怎么赚钱
2025/11/25 05:36
好省怎样赚钱
2025/11/12 13:49
大富翁棋牌一官网
2025/11/20 14:59
中国棋牌第一名
2025/11/18 10:57
极品秘书团游戏试玩
2025/11/16 17:54
美国做代购能赚多少
2025/11/16 02:58
晚上手机赚钱
2025/11/12 02:34
天和棋牌改什么名字了
2025/11/18 20:26
qq打字赚钱学生
2025/11/12 07:11
哪个游戏打工赚钱
2025/11/17 15:49
淘宝联盟佣金冻结申诉
2025/11/10 22:34
十大挣钱的项目
2025/11/23 12:53
诸暨钟点工兼职
2025/11/27 23:42
区块链是怎么来赚钱的
2025/11/14 13:15
区块链是怎么来赚钱的
2025/11/14 13:15更新
三国志战略版现在是火的一塌糊涂,大家玩了吗?!玩三国志战略版送优酷会员不知道大家知道有这个福利,这个是三国志战略版同优酷平台合作的一个优惠活动,这里给大家带来三...
支持 ( 113 ) 盖楼(回复)
支持 ( 164 ) 盖楼(回复)
支持 ( 156 ) 盖楼(回复)
支持 ( 64 ) 盖楼(回复)
支持 ( 136 ) 盖楼(回复)
支持 ( 113 ) 盖楼(回复)
支持 ( 200 ) 盖楼(回复)
支持 ( 182 ) 盖楼(回复)
支持 ( 197 ) 盖楼(回复)
支持 ( 89 ) 盖楼(回复)
支持 ( 178 ) 盖楼(回复)
支持 ( 57 ) 盖楼(回复)
支持 ( 80 ) 盖楼(回复)
支持 ( 48 ) 盖楼(回复)
支持 ( 88 ) 盖楼(回复)
支持 ( 163 ) 盖楼(回复)
支持 ( 137 ) 盖楼(回复)
支持 ( 155 ) 盖楼(回复)
支持 ( 136 ) 盖楼(回复)
支持 ( 10 ) 盖楼(回复)