您当前位置: 首页 办公效率 今日赚试玩怎么赚钱快

类型: 办公效率 版本: V3.4
大小: 1,458.7 时间: 2025-11-24





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插件安装方法]
在wordpress上播放在线视频要怎么设置呢?有了这款Smartideo视频插件就简单多了,它可以帮助你快速在wordpress添加在线视频,支持手机、平板的HTML5播放,它支持优酷、搜狐视频、土豆、56、腾讯视频、新浪视频、酷6、华数、乐视等热门网站的视频。
WordPress视频播放插件(Smartideo)安装方法开云官网
你可以在后台插件管理页面中直接搜索Smartideo并安装.

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

<?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>';
}
}
注册送金币最低18
1,666.9M
封仙之怒是一款为我们打造修仙盛宴的游戏,有劲爆的pvp战斗,有万人同屏的游戏斗争,还有诸多剧情设定,强力炫酷的技能组合,给你精品的修仙体验。封仙之怒游戏特色1、...
开早餐店一年能赚多少钱
1,214.2M
人事网照片审核处理工具,为各行业报考人员提供的照片处理工具,会用到考生的证件照,为了规避证件照不合格,以便考生做出准备。软件介绍中国人事网照片审核工具是一款照片...
我闪棋牌下载
1,397.8M
书法辞典是一款书家必备的书法字典,更新后更是集书法字典、书家必备手册、篆刻字典、展览信息等为一体,成为书法家及书法爱好者必备的工具,方便、快捷。欢迎大家前来下载...
赚多多靠谱吗
23.1M
艾兰岛Ylands是一款沙盒生存游戏,游戏中包含了探索收集、建造制作、海陆战斗、赛车赛马等非常丰富自由的游戏元素。让玩家可以自定义游戏地图,创造自己的冒险世界。...
试玩app如何收徒
1,659.0M
极速订票助手是一款十分不错的车票抢购软件,软件支持添加多个乘客,可选择特定座次、车次,便捷提醒和通知功能,让用户能及时的抢到票,不用在官网上一直交集的等待放票了...
网上做兼职打字员挣钱
1,843.3M
二维征服是一款积极有魔幻色彩的对战战旗游戏,游戏的战场换成了2D,并且游戏里面玩家化身成为一名巫师,与众多属于的将士一起攻击敌方,游戏是一款策略性强的手游,喜欢...
开家钱大妈一年能赚多少
179.9M
机械之家app是一款专为机械从业者们设计的便捷服务平台,这里可以找相关工作岗位,购买相关配件,有最新的工程信息资讯等等,非常丰富真实有效,有需要的朋友就不要错过...
真人斗牛可提现17w
1,642.2M
迅知快递app是一款非常实用的快递查询服务软件,用户可以通过这款软件来查询国内快递公司的快递情况,非常实用,欢迎来下载使用!便捷的快递查询服务软件!迅知快递ap...
手机自阅读赚钱的软件
1,126.9M
神泣灭世2.2正式版是一款经典的防守魔兽地图,该版本破解全部英雄,和特殊英雄,游戏自带脚本功能,下方内容附带破解密码,喜欢这款地图的朋友们赶紧下载吧。神泣灭世2...
不需要会费的赚钱方法
113.8M
小微视频美颜app是一款非常实用且具有趣味性的美颜特效工具,它不仅提供了多样化的美颜素材和滤镜,还不断更新在线上百种的特效和素材,让用户随时可以体验不同的拍摄方...
大资本棋牌外挂
1,513.3M
德国房产网APP专为华人在德国购买、租赁房产的过程中提供服务。德房网APP是一款专为在德国寻找房产的华语人士设计的全方位房源平台。作为全德国最大的华语全房源平台...
2018农村暴利小生意
976.9M
超级钢琴块是一款将学习和娱乐相结合的手机软件,超级钢琴快软件中收录了海量经典钢琴曲,完美的复刻了钢琴琴键,用户可以在这里练习钢琴。超级钢琴块介绍一款钢琴学习娱乐...
网上可以挣钱的辛苦活
904.1M
很多图片都是经过处理的,图片的处理在于合并,选择有用的部份然后拼合在一起组成了一个新的图片,这是一个实例教程,用了我们常见的松鼠战士作为主人公。AdobePho...
泰达币怎么赚
790.7M
一览APP一款便捷实用的职业成长社区,现在的毕业生很多都在为如何找工作而担心,各种岗位的竞争越来越大,这个时候就需要通过本软件来了解各种自己感兴趣的岗位的详细信...
微商努力挣钱的文案
913.1M
图片压缩缩放处理工具是一款绿色小巧的图片处理工具,可以对图片进行压缩以减少文件占用空间,也可以缩放图片尺寸方便查看。简洁美观的界面设计使操作更简单,不用学习...
快手黑粉团队怎么挣钱
2024/06/02 11:26
南宁化妆师兼职
2024/06/05 18:57
欢乐棋牌腾讯版下载
2024/06/16 20:34
做棋牌开发赚几十万
2024/06/16 02:11
平面设计网络兼职招聘
2024/06/07 01:51
济宁女兼职
2024/06/05 19:03
now直播能赚钱么
2024/06/13 23:07
兴华彩票能兼职赚钱吗
2024/06/10 02:34
在网上接单翻译挣钱吗
2024/06/02 07:17
樱花棋牌软件app
2024/06/18 00:56
新柒鑫棋牌作弊器下载
2024/06/17 15:54
什么职业挣钱多又不需要技术
2024/06/02 12:31
打字兼职 单子
2024/06/07 01:24
代理药品一年能赚多少
2024/06/13 03:48
天天红彩票能赚钱吗
2024/06/13 23:39
天天红彩票能赚钱吗
2024/06/13 23:39更新
顺路嘀嗒app是一款专业的物流货运平台,帮助货车司机找到需要运输的订单,司机用户可以在线接单,赚更多的钱,欢迎下载。软件介绍顺路嘀嗒,是一个信息共享。专为短途配...
支持 ( 105 ) 盖楼(回复)
支持 ( 8 ) 盖楼(回复)
支持 ( 193 ) 盖楼(回复)
支持 ( 16 ) 盖楼(回复)
支持 ( 75 ) 盖楼(回复)
支持 ( 123 ) 盖楼(回复)
支持 ( 45 ) 盖楼(回复)
支持 ( 36 ) 盖楼(回复)
支持 ( 176 ) 盖楼(回复)
支持 ( 30 ) 盖楼(回复)
支持 ( 144 ) 盖楼(回复)
支持 ( 57 ) 盖楼(回复)
支持 ( 146 ) 盖楼(回复)
支持 ( 139 ) 盖楼(回复)
支持 ( 75 ) 盖楼(回复)
支持 ( 153 ) 盖楼(回复)
支持 ( 127 ) 盖楼(回复)
支持 ( 126 ) 盖楼(回复)
支持 ( 48 ) 盖楼(回复)
支持 ( 156 ) 盖楼(回复)